Thursday, 15 January 2015

java - Intellij can't run application with jdk -


When I run my web application with Tomcat, I receive an error as:

Reason: unable to find a Java compiler;

is not on com.sun.tools.javac.Main square path.

Perhaps JAVA_HOME does not talk to JDK.

It is currently set to "D: \ jdk1.7.0_60 \ jre"

I have set up JAVA_HOME in the configuration, but unfortunately no effect. Enter image details here

SDK setting in project structure:

================== == ====================================

The issue is resolved ! The application gets an exception when working at AT Javak, if the "fork" property is set to "true", then it seems exaggerated.

@Michael Hobbs and @Dimitri Hautot appreciate.

JRE means "Java Runtime Environment" Javac is not the compiler.

The JRE is actually a subfolder of JDK ( Java Development Kit , where is the compiler).

Ensure that your paths are set correctly in IntelliJ settings, and refer to JDK, JRE no.

EDIT: Looking at the proposed path, "D: \ jdk1 .7.0_60 \ Jare", maybe you could cause this problem to install JRE on your computer instead of JDK.


No comments:

Post a Comment