PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
Posted on March 17th, 2014
###PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
> ...
> PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
>
> Caused by:
> org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
> ...
______
可以在 jetty9/start.ini 中, 加上:
`-Dorg.apache.jasper.compiler.disablejsr199=true`
(文章提到 Jetty 應該是大於6都適用, 我自己是在 jetty9 遇到的)
如果使用的是 embedded jetty 沒有 start.ini 可以修改的話, 可以直接在執行 jetty 的 method 之前加上:
`System.setProperty("org.apache.jasper.compiler.disablejsr199", "true");`
詳細內容可以參考:
Ref: [Stackoverflow](http://stackoverflow.com/questions/9113346/pwc6345-there-is-an-error-in-invoking-javac-error-when-using-jetty-wtp-plugi)
如果使用的是 embedded jetty 沒有 start.ini 可以修改的話, 可以直接在執行 jetty 的 method 之前加上:
`System.setProperty("org.apache.jasper.compiler.disablejsr199", "true");`
詳細內容可以參考:
Ref: [Stackoverflow](http://stackoverflow.com/questions/9113346/pwc6345-there-is-an-error-in-invoking-javac-error-when-using-jetty-wtp-plugi)