In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to configure Resin under Eclipse. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Open "window- > Preferences- > Java- > Build Path- > Classpath Variables", add classpath variables, and configure the base to the installation directory of Resin.
For example, configure it to: Resin_3.1.9-D:/resin-3.1.9 on my machine. It is best to configure a JDK_TOOLS at the same time and specify it to the lib/tools.jar file under java_home, otherwise it may appear garbled in Chinese when it is output in the console.
2. Run the menu "Run- > Run..." and create a new Java Application running project in the pop-up window.
3. The running project name is named the corresponding resin server version number, such as resin-3.1.9.
4. Main option
The Project item is set to empty, and if it already has content, it will be deleted to ensure that it can be run in every project.
Main Class (set the startup class of the project) item corresponds to the resin server version, if Resin2.x is com.caucho.server.http.HttpServer, if Resin3.1.x is com.caucho.server.resin.Resin
Other options can be left in the default configuration.
5. Arguments option
Enter-conf "${project_loc}\ resin.conf" in the Program arguments entry (or-conf "${project_loc}\ resin3.conf" if Resin3.x is configured).
The VM arguments entry is empty. If it is Resin3.x, you need to fill in the following. Note that the first item is configured as the root path of the actual resin installation.
-Dresin.home= "D:\ resion3.1.9"
-Djava.util.logging.manager=com.caucho.log.LogManagerImpl
The Working directory entry is changed to other, which specifies the root path of the resin installation.
6. JRE option. Just keep the default configuration. If it is the resin3.x version, you may need jre5.0.
7. Classpath option
Select Bootstrap Entries, click Advanced, select Add Classpath Variables, select Resin_3.1.9, click Extend, select all the jar files in the lib directory and add them to the startup project
Select Bootstrap Entries, click Advanced, select Add Classpath Variables, and then add JDK_TOOLS to the startup project
7. Source option
Delete the default Default source code search directory, add two new External Archive, and specify the corresponding underlying development framework jar package (base\ cms\ web)
8. Guarantee configuration. Place resin3.conf in the root directory of the project, add resin-3.1.9 to your favorites in eclipse's Run menu, select the project or a file in the project, and then run resin-3.1.9.
Note for resin3.conf configuration: if you want to load extension packages other than. / lib, add these packages to the public jar file configuration of the resin.conf extension library, such as:
Thank you for reading! This is the end of this article on "how to configure Resin under Eclipse". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 223
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.