JAVA_HOME does not point to JDK: Google engine cannot be started

I get the following errors when I try to run a sample project in netbeans on a Google application server. The server does not start. How can I solve these errors if they exist? I am using netbeans 7.1

BUILD FAILED W:\UnderTest\NetbeansCurrent\Guestbook\nbproject\build-impl.xml:550: The following error occurred while executing this line: W:\UnderTest\NetbeansCurrent\Guestbook\nbproject\build-impl.xml:300: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre7" 
+4
source share
3 answers

Install jdk and set JAVA_HOME to environment variables in the path where jdk was installed. He is currently pointing to jre.

+4
source

Try this - for temporary

Windows

 netbeans.exe --jdkhome "c:\JDK\path" 

Unix

  netbeans --jdkhome /usr/bin/yourjdk 

If you want to set the parameter permanently, you can do this in the netbeans.conf file. and change.

 # Default location of JDK, can be overridden by using --jdkhome <dir>: netbeans_jdkhome="c:\your\JDK\path" 
+1
source

you will hear the likely solution: setting the jdk path to netbeans or, if you set JAVA_HOME to windows env, use% JAVA_HOME%

0
source

All Articles