lovestogame227
lovestogame227

Reputation: 31

Java was started but returned exit code=1?

I recently updated java and came across this error... I've changed my eclipse.ini file to the

-vm 
C:\Program Files (x86)\Java\jre7\bin\javaw.exe

Yet it still doesn't work... here is the whole ini file

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-XX:-UseCompressedOops
-vm 
C:\Program Files (x86)\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx512m

Any solutions? I don't know what to do

Upvotes: 1

Views: 20472

Answers (4)

Guest
Guest

Reputation: 1

i have removed the same path which is displaying in error message from system environmental variables [ In "Path" Variable]

Upvotes: 0

Newbie
Newbie

Reputation: 41

Make sure the JAVA_HOME variable and path was set properly. I added the below, which resolved this issue.

-vm
C:\Program Files\Java\jdk1.6.0_45\bin\javaw.exe

Make sure, that the -vm option occurs before the -vmargs command.

Upvotes: 2

lovestogame227
lovestogame227

Reputation: 31

Discovered the issue thanks to @Goose.

My JDK version was somehow not working? A fresh installation of Java and JDK seemed to resolve the issue as well as the rerouting of the ini file to:

-vm c:/wherever/java/jdk1.8.0_40/jre/bin/server/jvm.dll

Upvotes: 1

Viswanath Donthi
Viswanath Donthi

Reputation: 1821

The error message points to a problem with your java Version. Do you have a JDK installed?

Try adding:

-vm 
c:/wherever/java/jdk1.8.0_40/jre/bin/server/jvm.dll

to your eclipse.ini file, pointing to the JDK you want to use, and check that the required Java Verision is at least as new as your JDK. This is the path for a Windows system.

Upvotes: 1

Related Questions