下载resin http://caucho.com/products/resin/download
选择resin下载就够了,pro版实际是利用了native的一些特性来提升性能,但获得这点性能提升又不是免费的,
需要license(证书);pro和非pro,对于学习开发而言根本没有什么区别。pro版本可以获得一些javaEE的功能,如负载均衡,JMS等,性能能够提高.
resin源码下载地址:http://download.csdn.net/detail/u014520797/9697191
resin下载地址:http://download.csdn.net/detail/u014520797/9697190
放到本地,解压
1、打开eclipse,新建new server界面
同意
ok
完成之后新建resin server
jre选择jdk,不然运行时会报错,eclipse默认不是jdk环境下面将会有讲解
选择自己下载解压resin的位置
2、若eclipsejava环境是jre,运行resin就会报下面的错误
[16-11-26 09:16:57.029] {resin-port-8080-52} javac compiler is not available in Java(TM) SE Runtime Environment 1.7.0_79-b15. Check that you are using the JDK, not the JRE.
[16-11-26 09:17:01.551] {resin-port-8080-52} Compiling _jsp/_index__jsp.java
[16-11-26 09:17:01.551] {resin-port-8080-52} javac compiler is not available in Java(TM) SE Runtime Environment 1.7.0_79-b15. Check that you are using the JDK, not the JRE.
[16-11-26 09:17:21.295] {resin-port-8080-52} Compiling _jsp/_index__jsp.java
[16-11-26 09:17:21.295] {resin-port-8080-52} javac compiler is not available in Java(TM) SE Runtime Environment 1.7.0_79-b15. Check that you are using the JDK, not the JRE.
[16-11-26 09:17:24.115] {resin-port-8080-52} Compiling _jsp/_index__jsp.java
[16-11-26 09:17:24.130] {resin-port-8080-52} javac compiler is not available in Java(TM) SE Runtime Environment 1.7.0_79-b15. Check that you are using the JDK, not the JRE.
3、解决eclipse java环境为jdk
4、补充:点击“publish/Debug”,与Tomcat类似,即可成功发布项目。这里有一点与Tomcat不同的是
,Resin在运行时先把整个工程打包,再发布到Resin容器中。
5、成功界面