启动Eclipse 报错:java was started but returned exit code = 1

问题1:

新安装jdk,解压绿色版eclise4.4,启动eclise报错 :java was started but returned exit code = 1

java -version 正常显示jdk版本;

解决办法:

将c:/windows/system32 下的java.exe,javaw.exe,javaws.exe,三个文件删除,即可;

问题1的弹出error提示如下图:

启动Eclipse 报错:java was started but returned exit code = 1_第1张图片

java环境变量配置如下:

classpath:.;%JAVA_HOME%\bin;C:\Program Files\Java\jdk1.7.0_67\bin\dt.jar;C:\Program Files\Java\jdk1.7.0_67\bin\tools.jar

JAVA_HOME:C:\Program Files\Java\jdk1.7.0_67

JAVA_OPTIONS:-Xmx512M

PATH:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;C:\Program Files\Java\jre7\bin;C:\Program Files\TortoiseSVN\bin;%MAVEN_HOME%\bin


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

问题2:

安装maven ,在环境变量里配置maven时,显示

JAVA_HOME should point to a JDK not a JRE

重启电脑好生效,原来配置环境变量需要重启电脑才行

配置环境变量如下(两个配置):

MAVEN_HOME :D:\apache-maven\apache-maven-3.3.9

MAVEN_OPTS:-Xms128m -Xmx512m

正确的显示硬格如下:

启动Eclipse 报错:java was started but returned exit code = 1_第2张图片









你可能感兴趣的:(启动Eclipse 报错:java was started but returned exit code = 1)