Google应用引擎部署:JDK不是JRE [英] Google app engine deployment : JDK not JRE

查看:162
本文介绍了Google应用引擎部署:JDK不是JRE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有

java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.

在Google应用引擎上部署我的应用程序时,我搜索了解决方案,发现我应该添加:
-vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe
to eclipse.ini 文件强制eclipse使用JDK不是JRE,我已经确认从
windows >> prefrences >> java >>>安装JRE它指向JDK不是JRE ...
我尝试卸载整个jdk并再次安装...
,我仍然有问题....

While deploying my application on google app engine, I have searched for solutions and found that i should add: -vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe to eclipse.ini file to force eclipse to use JDK not JRE, I have confirmed from windows >> prefrences >> java >>> installed JRE that it points to the JDK not the JRE ... I tried uninstalling the whole jdk and installing it again ... and I still have the problem ....

eclipse.ini 文件是:

-vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

和帮助>>关于Eclipse >>>安装细节>>>配置:
我有这个:

and from Help >> About Eclipse >>>Installation details >>>configuration: I have this:

-startup
F:\programs\some\eclipse-jee-kepler-SR2-win32\eclipse\\plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-vm C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe
-product
org.eclipse.epp.package.jee.product
-vm
C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
eclipse.home.location=file:/F:/programs/some/eclipse-jee-kepler-SR2-win32/eclipse/
eclipse.launcher=F:\programs\some\eclipse-jee-kepler-SR2-win32\eclipse\eclipse.exe
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=@config.dir/../p2/

JAVA_HOME变量值: C:\Program Files\Java\jdk1.7.0_02\bin

JAVA_HOME variable value: C:\Program Files\Java\jdk1.7.0_02\bin

推荐答案

在eclipse.ini中写这个(注意:你必须在-vm之后添加新行)

In eclipse.ini write this (note : you have to add new line after -vm)

-vm 
C:\Program Files\Java\jdk1.7.0_02\bin

这篇关于Google应用引擎部署:JDK不是JRE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆