This configuration applies to resin2.x and resin3.x. You need to place
Resin. conf file. Because the configuration files of resin2.x and resin3.x are different, two files are required,
The resin. conf file is used to start resin2.x and resin30.conf to start resin3.x.
The following describes how to configure resin2.1.16:
1. Open "window-> preferences-> JAVA-> build path-> classpath variables" and add
Classpath variables: configure the base to the resin installation directory. For example, on my machine, configure:
Resin_2.1.16-D:/Program/resize oft/resin-2.1.16. It is best to configure a jdk_tools at the same time,
It is specified to the LIB/tools. jar file under java_home. Otherwise, Chinese characters may be displayed in disorder during console output.
.
2. Run "Run-> Run..." to add a Java application running item in the pop-up window.
.
3. Add the project name as long as different applications can be distinguished. For example, resin_2.1.16. In
The project item is left blank. If there is already content, delete it. This ensures that it can be used in every project.
To run.
4. Set the main class of the project, and resin2.x is
Com. Caucho. server. http. httpserver, resin3.x is
Com. Caucho. server. http. resinserver.
5. Configure arguments and enter-conf in program arguments.
"$ {Project_loc} \ resin. conf", (if resin3.x is configured, enter-Conf
"$ {Project_loc} \ resin30.conf ").
6. It is null in VM arguments (if it is resin3.x, enter
-Djava. util. Logging. Manager = com. Caucho. log. logmanagerimpl)
7. Specify the working directory as the resin installation directory.
8. Configure JRE and keep the default configuration. For resin3.x, jre5.0 may be required.
9. Configure classpath, select Bootstrap entries, click Advanced, and select Add classpath.
Variables, select resin_2.1.16, click Extend, select all jar files under the lib directory, and add
And then add jdk_tools to the startup project.
10. Ensure the configuration. Place resin. conf in the root directory of the project, and set resin_2 In the eclipse run menu.
1.16 add to favorites, select a project or a file in the project, and then run resin_2.1.16.