Setup Jetty 7 with JSP engine
我一直试图让Jetty通过自定义启动器(嵌入式)运行我的Web应用程序。我试图弄清楚如何告诉Jetty哪个Java编译器用于JSP。我想执行
这是控制台上显示的内容:
1 2 | Javac exception, Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK |
我是否需要将javac库放入我的类路径中?
您需要具有一个
2) To set
JAVA_HOME :Right click My Computer and select Properties. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example,C:\\Program Files\\Java\\jdk1.6.0_02 .
像Tomcat这样的大多数servlet容器都不需要它,因为它们附带了自己的编译器。