?
Solved

Eclipse start error: could not find Java SE Runtime Environment

Posted on 2013-06-19
4
Medium Priority
?
4,406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 39260369
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
ID: 39260700
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
ID: 39260744
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
ID: 39261193
ok :)
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month14 days, 11 hours left to enroll

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