Solved

Eclipse start error: could not find Java SE Runtime Environment

Posted on 2013-06-19
4
3,830 Views
Last Modified: 2013-06-19
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?
0
Comment
Question by:allelopath
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
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
 
LVL 1

Author Comment

by:allelopath
Comment Utility
Ok, I changed it to:
C:\Program Files\Java\jdk1.7.0_04
but I still get the same error (after restarting machine)
0
 
LVL 1

Author Comment

by:allelopath
Comment Utility
I added this to eclipse.ini:
-vm
C:\Program Files\Java\jdk1.7.0_04\bin
and it starts now.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
ok :)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now