部署到Google App Engine时的运行时异常

时间:2018-04-09 03:43:07

标签: java eclipse google-app-engine ubuntu

我已经查看了this question,但现有的答案都没有特别有用。

错误消息是

  

“无法登台应用程序:无法获取System Java编译器。请使用   JDK,而不是JRE。“

$JAVA_HOME

/usr/lib/jvm/java-8-openjdk-amd64

$PATH

/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/jvm/java-8-openjdk-amd64//bin:/home/ukraine/.nvm/versions/node/v9.11.1/bin:/home/ukraine/Downloads/Libraries/Python/google-cloud-sdk/bin:/home/ukraine/bin:/home/ukraine/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
/root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

1 个答案:

答案 0 :(得分:1)

事实证明我需要使用Oracle JDK而不是Open JDK