Home >Java >javaTutorial >Eclipse configuration resin instance tutorial
This configuration is applicable to Resin2.x, Resin3.x and Resin4.x versions. When running, a resin.conf file needs to be placed in each project directory. Since the configuration files of Resin2.x, Resin3.x and Resin4.x versions are different, two files are required. The resin.conf file is used to start resin2.x. , resin30.conf is used to start resin3.x
Method/Step
##Open "window->Preferences->Java-> Build Path->Classpath Variables", add classpath variables and configure them to the Resin installation directory. For example: Resin_2.1.16 -D:/Program/JavaSoft/resin-2.1.16. It is best to configure a JDK_TOOLS at the same time and assign it to the lib/tools.jar file under java_home, otherwise the Chinese characters may be displayed as garbled characters in the console output. Run menu "Run->Run..." and add a Java Application running project in the pop-up window. Add the project name as you like, as long as you can distinguish different applications. Such as: resin_2.1.16. Set the Project item to empty, and delete it if there is already content. This is necessary to ensure that it can run in every project. Set the startup class (Main Class) of the project. Resin2.x is com.caucho.server.http.HttpServer, Resin3.x is com.caucho.server.http.ResinServer, and Resin4.x is com. caucho.server.resin.Resin. Configure Arguments, fill in -conf "${project_loc}\resin.conf" in Program arguments, (if configuring Resin3.x, fill in -conf "${project_loc}\resin30.conf") (if To configure Resin4.x, fill in -conf "E:\CVSROOT\HelpDesk\resin40.xml"). is empty in VM arguments (if Resin3.x, fill in -Djava.util.logging.manager=com.caucho.log.LogManagerImpl) (if Resin4.x is configured, fill in -Dresin.home ="D:\resin\resin-4.0.4"-Djava.util.logging.manager=com.caucho.log.LogManagerImpl-server -Xmx256m -Xms80m -XX:PermSize=128m -XX:MaxPermSize=128m)Specify Working directory as the installation directory of resinConfigure JRE and keep the default configuration. If it is resin3.x version, jre5.0 may be required. Configure classpath, select Bootstrap Entries, click Advanced, select Add ClasspathVariables, select Resin_2.1.16, click Extend, select all jar files in the lib directory, add them to the startup project, and then add JDK_TOOLS to Starting the project. If it is 4, select Bootstrap Entries, click Advanced, select Add Liberty, select User Liberty, click next, click User Liberty, create a new lib directory resin4.0 and confirm, load all jar packages under resin4. Click Ok and select the created package next9 to ensure the configuration. Place resin.conf in the root directory of the project, add Resin_2.1.16 to the collection in the Run menu of eclipse, select the project or a file in the project, and then run Resin_2.1.16.The above is the detailed content of Eclipse configuration resin instance tutorial. For more information, please follow other related articles on the PHP Chinese website!