jetty8 中的异常 There is an error in invoking javac. A full JDK (not just JRE) is required...
2014-07-04 16:39
477 查看
在jetty文件夹下的start.ini文件里有这么一行"-Dorg.apache.jasper.compiler.disablejsr199=true"注释,把这个注释去掉,再启动就不会出现错误了。(把这一行最前面的“#”删除即可)
这个错误用eclipse启动jetty时不会出现,而用命令行启动时会出现,这个问题应该算apache的jsp引擎的一个bug。在jsp引擎中,如果java版本大于等于1.6.0,则默认会使用JDK自带的java编译器,这个编译器位于JDK中,在JRE中是没有的。但是如果使用JRE启动Jetty,就会报上面的错误。
这个错误用eclipse启动jetty时不会出现,而用命令行启动时会出现,这个问题应该算apache的jsp引擎的一个bug。在jsp引擎中,如果java版本大于等于1.6.0,则默认会使用JDK自带的java编译器,这个编译器位于JDK中,在JRE中是没有的。但是如果使用JRE启动Jetty,就会报上面的错误。
相关文章推荐
- PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
- jetty访问jsp页面出现PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
- There is an error in invoking javac. A full JDK (not just JRE) is required...
- jetty访问jsp页面出现PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
- Jetty8不能編譯JSP,報"There is an error in invoking javac. A full JDK (not just JRE) is required"錯誤
- jetty 跑 Java Exception:"PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is r
- There is an error in invoking javac. A full JDK (not just JRE) is required
- org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not ju
- org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not ju
- org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not ju
- Jetty7.6.X java.err.nojdk 错误,jetty8.1There is an error in invoking javac解决方法
- jetty访问jsp页面出现(PWC6345: There is an error in invoking javac)
- [Java开发] jetty访问jsp页面出现( PWC6345: There is an error in invoking javac)
- jetty访问jsp页面出现( PWC6345: There is an error in invoking javac)
- PWC6345: There is an error in invoking javac
- jetty部署异常:rg.apache.jasper.JasperException: PWC6345: There is an error in invoking ja
- 微信公众开放平台开发05---jetty部署异常:rg.apache.jasper.JasperException: PWC6345: There is an error in invoking ja
- jetty访问jsp页面出现(PWC6345: There is an error in invoking javac)
- [Java开发] jetty访问jsp页面出现( PWC6345: There is an error in invoking javac)
- jetty访问jsp页面出现( PWC6345: There is an error in invoking