Eclipse start error: could not find Java SE Runtime Environment

I just updated java 6 and 7 on a windows 7 machine. Now eclipse will not start up. I get a message saying:
Error: could not find Java SE Runtime Environment

I have JAVA_HOME set to:
C:\Program Files\Java\jre6\bin

This is eclipse.ini:
-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
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Declipse.buildId=v21.0.1-543035
-Xms40m
-Xmx768m

What do I need to do?
LVL 1
allelopathAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CEHJConnect With a Mentor Commented:
I have JAVA_HOME set to:
C:\Program Files\Java\jre6\bin
That's not right. Should be

C:\Program Files\Java\jre6

But why install Java 6? Also, if you're developing in Java, that should be pointing to a JDK
0
 
allelopathAuthor Commented:
Ok, I changed it to:
C:\Program Files\Java\jdk1.7.0_04
but I still get the same error (after restarting machine)
0
 
allelopathAuthor Commented:
I added this to eclipse.ini:
-vm
C:\Program Files\Java\jdk1.7.0_04\bin
and it starts now.
0
 
CEHJCommented:
ok :)
0
All Courses

From novice to tech pro — start learning today.