Jetty deploy Java Web Engineering; Report java.err.no JDK Error __web

Source: Internet
Author: User
Tags java web
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.