Solved

Eclipse start error: could not find Java SE Runtime Environment

Posted on 2013-06-19
4
3,942 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSum5 challenge 5 71
Where to store the queries for modification of table 4 55
egit plugin on eclipse 8 40
arguments to jar 5 15
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

867 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

25 Experts available now in Live!

Get 1:1 Help Now