Resin报错com.caucho.jsp.JspParseException: javac compiler is not available in Java(TM) SE Runtime Environment 1.7.0_45-b18. Check that you are using the JDK, not the JRE.。
1. 在Eclipse中New - Server,选择“Download additional server adapters”, 之后选择“Resin (Java EE Web Profile) Server”.
2. 需要注意一点的是,Resin运行的环境是JDK,而不是JRE,所以需要在运行环境时,选择JDK。不然的话,可能会出现如下所示的错误:
com.caucho.jsp.JspParseException: javac compiler is not available in Java(TM) SE Runtime Environment 1.7.0_45-b18. Check that you are using the JDK, not the JRE. |
3. 点击“publish/Debug”,与Tomcat类似,即可成功发布项目。这里有一点与Tomcat不同的是,Resin在运行时先把整个工程打包,再发布到Resin容器中。