1. Error
Jetty deployed Java Web Engineering to access the JSP reported the following error:
2015-10-1610:16:58.072:warn:oejs. Servlethandler:
Org.apache.jasper.JasperException:java.err.nojdk
Atorg.apache.jasper.compiler.DefaultErrorHandler.jspError (defaulterrorhandler.java:89)
Atorg.apache.jasper.compiler.ErrorDispatcher.dispatch (errordispatcher.java:375)
Atorg.apache.jasper.compiler.ErrorDispatcher.jspError (errordispatcher.java:116) 2 analysis:
Error is to parse JSP when the report exception said no JAVAJDK, this is because the project to choose JDK, the JDK to use the Java directory in the JDK, do not use the JRE package. 3. Resolve:
For example, the Code Editor I use is myeclipse, then one step before using development code is to select a locally installed JDK, the direct Java installation directory of the JDK directory I chose here, which contains the JRE package, so the path should be chosen to the path below the JDK, as shown in the following illustration:
Action: Select the windowsàpreferencesàjavaàinstalled jres in MyEclipse
Note: This add's JDK path selection must be selected to the JDK, not the first level directory of the Java installation.