Ok, so I had tried to install a new jdk / jre and suddenly my eclipse will not open. I have tried uninstalling old forms of java and reinstalling the java that I need, and it refuses to open. I've googled this and tried a dozen answers online but none of them work for me. It's extremely frustrating. ideas?
Asked
Active
Viewed 4.1k times
4
-
1http://stackoverflow.com/questions/18609160/eclipse-returns-error-message-java-was-started-but-returned-exit-code-1 – Amit G Jun 25 '14 at 12:39
-
I had found that question but since there was no screenshot or description of where it was, I couldn't figure it out from that...I know that makes me stupid, but I needed more step by step instructions. – user2847749 Jun 25 '14 at 12:45
2 Answers
12
So I tried everything I could find for like 5 hours, and eventually came across this.... Open your eclipse.ini file. It will open in notebook. Mine is located here D:\eclipse_3.8.1\eclipse
The file starts out looking like this:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms512m
-Xmx2G
Above -vmargs, add these two lines:
-vm
location of your jdk javaw.exe file
so that it looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_45\bin\javaw.exe
-vmargs
-Xms512m
-Xmx2G

user2847749
- 339
- 2
- 9
- 27
-
2Make sure you type the line as displayed: with the path on a separate line, not on the same line as -vm. – Diomidis Spinellis Jul 29 '15 at 11:50
1
In your eclipse.ini file make sure you are pointing -vm to your jdk installation. You will get detail guidline in http://wiki.eclipse.org/Eclipse.ini#-vm_value%3a_Windows_Example

Mind Peace
- 905
- 8
- 29