google app engine - NetBeans 7.4 Cannot get the System Java Compiler. Please use a JDK, not a JRE -


i'm getting error when trying deploy project appengine using netbeans. installed plugin netbeans , can run application localy using appengine-java-sdk-1.9.0

when try deploy program following message:

beginning interaction module default... 0% created staging directory at: 'c:\users\adi\appdata\local\temp\appcfg8079434123068806992.tmp' 5% scanning jsp files. 8% compiling jsp files.  error details: mar 10, 2014 11:50:04 pm org.apache.jasper.jspc processfile info: built file: \guestbook.jsp   java.lang.runtimeexception: cannot system java compiler. please use jdk, not jre. unable update app: cannot system java compiler. please use jdk, not jre. please see logs [c:\users\adi\appdata\local\temp\appcfg5934545421821565182.log] further information. 

thanks in advance.

first of all, first answer in stackoverflow. please consider, if break rules not hesitate tell me whats wrong or should changed in future.

i run same problem amir rossert. i've installed bundle "netbeans 8 + jdk 8" (jdk-8u25-nb-8_0_1-windows-x64.exe oracle website). additionally have installed jdk 7 needed different cases.

in netbeans both jdks displayed under tools/java platform manager java se

  • jdk 1.7
  • jdk 1.8 (default)

so far good. when changed java_home jdk 1.7 (c:\program files\java\jdk1.7.0_72) still java -version 1.8 !?

why: because netbeans

  1. has installed/copied 3 following files
    • java.exe
    • javaw.exe
    • javaws.exe c:\windows\system32
  2. linked them directory c:\programdata\oracle\java\javapath ,
  3. after set system variable path (not path) = c:\programdata\oracle\java\javapath;

so whenever wanted use 1.7 didn't work, instead 1.8 used. , when wanted deploy google appengine exception occur: caused by: java.lang.runtimeexception: cannot system java compiler. please use jdk, not jre.

i solved way:

  1. i deleted 3 files mentioned above (java.exe, javaw.exe, javaws.exe)
  2. i deleted directory c:\programdata\oracle\java\javapath
  3. i deleted value c:\programdata\oracle\java\javapath; in system variable path:

after tried out deploy on google appengine again, time successfully.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -