Eclipse not opening after JDK installation - Win 7 Machine 64 bit
Eclpse IDE is not opening after JDK installation. After reading through couple of related posts. I added for path in environment variables below text
C:\Program Files\Java\jdk1.6.0_25\bin\javac;C:\Program Files\Java\jdk1.6.0_25\bin\javaw.exe
When I type path in c开发者_JAVA百科md file this values get reflected.
Now I'm bit worried if I have to uninstall and check. Any help is appreciated.
Rather than fiddling with the $PATH
, I would first set explicitly the jdk to use when launching eclipse, by editing eclipse.ini
and adding those lines:
-vm
C:/Program Files/Java/jdk1.6.0_25/jre/bin/server/jvm.dll
See this eclipse.ini
as an example.
See also "Eclipse crashes on start-up. Wrong eclipse.ini?" for more.
You may also try by removing these two lines.
Edit the eclipse.ini file and remove these two lines: -startup plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
Siva,
For your eclipse to recognize your virtual machine you basically have 3 alternatives:
Method 1
Control Panel > Java > Java tab > click the View button.
Find your JVM installation and inside Runtime Parameters, put:
-Djava.home=YOUR_JVM_PATH_HERE
In your case: -Djava.home=C:\Program Files\Java\jdk1.6.0_25\
Method 2
You can set your JAVA_HOME https://stackoverflow.com/a/6521412/5626568
Method 3
How to specify your JVM direct inside config file: Eclipse workspace crashes on startup
Important to remember:
- For the 32-bit Eclipse executable (eclipse.exe on Windows) a 32-bit JVM must be used
- For the 64-bit Eclipse executable a 64-bit JVM must be used
- 32-bit Eclipse will not work with a 64-bit JVM
I hope this helps...
Good Luck!
Problem
Eclipse IDE is not opening after upgrading your JDK.
Solution:
step 1 :Go to C:\Users"username"\eclipse"jdk version"\eclipse\eclipse.ini
step 2: update the path of -vm to the latest java bin folder
step 3: save and close the ini file , open your eclipse ... and you are ready to rock and roll again.
精彩评论