Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » cant open eclipse
cant open eclipse [message #1150231] Tue, 22 October 2013 12:32 Go to next message
Josh Simons is currently offline Josh Simons
Messages: 3
Registered: October 2013
Junior Member
Hi i cant get my eclipse to run. It says that it cannot find a JRE or JDK but I have the newest version of Java installed. What do I do to get rid of this?
Re: cant open eclipse [message #1150585 is a reply to message #1150231] Tue, 22 October 2013 17:53 Go to previous messageGo to next message
Doug Slavens is currently offline Doug Slavens
Messages: 6
Registered: September 2013
Junior Member
At a command prompt, type the command "java -version". Do you see version information for the Java installation you did?

[Updated on: Tue, 22 October 2013 17:53]

Report message to a moderator

Re: cant open eclipse [message #1150617 is a reply to message #1150585] Tue, 22 October 2013 18:22 Go to previous messageGo to next message
Josh Simons is currently offline Josh Simons
Messages: 3
Registered: October 2013
Junior Member
that didnt work
Re: cant open eclipse [message #1150648 is a reply to message #1150617] Tue, 22 October 2013 18:52 Go to previous messageGo to next message
Doug Slavens is currently offline Doug Slavens
Messages: 6
Registered: September 2013
Junior Member
That would indicate there is probably something wrong with your Java installation which is why Eclipse cannot start. Trying re-installing Java and run the java -version command again. When java is installed correctly, you will see output like this:

C:\Users\dev>java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Re: cant open eclipse [message #1150705 is a reply to message #1150648] Tue, 22 October 2013 19:50 Go to previous messageGo to next message
Josh Simons is currently offline Josh Simons
Messages: 3
Registered: October 2013
Junior Member
still dosent work ive uninstalled it and reinstalled it twice now
Re: cant open eclipse [message #1152164 is a reply to message #1150705] Wed, 23 October 2013 17:23 Go to previous messageGo to next message
Doug Slavens is currently offline Doug Slavens
Messages: 6
Registered: September 2013
Junior Member
More information would be helpful. Can you try this? Reinstall and at the command prompt, change directory to C:\Program Files\Java\jdk1.7.0_xx\bin where 'xx' should be changed to whatever Java version you are installing. Then from that directory, run java -version. If it works, then there is a problem with the environment. If you cannot find that directory, then the installation failed for some reason.
Re: cant open eclipse [message #1153471 is a reply to message #1152164] Thu, 24 October 2013 12:35 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1334
Registered: July 2009
Senior Member
Don't rely on your system path to find the JDK. You should specify the path the jdk in your eclipse.ini file.

See here: http://wiki.eclipse.org/Eclipse.ini
Re: cant open eclipse [message #1155442 is a reply to message #1150231] Fri, 25 October 2013 19:01 Go to previous messageGo to next message
Chris Mcmahon is currently offline Chris Mcmahon
Messages: 2
Registered: October 2013
Junior Member
Too add to this post I am having the same issue.

I have gone as far as rolling back from Mavericks on my mac and reloading Mountain Lion.

I can verify that my Java install is current through terminal.

If I try to open eclipse it prompts me to load JRE6 ... By doing that it installs JRE6 in the following directory

/System/Library/Java/JavaVirtualMachines/.....

My actual JRE is installed here:

/Library/Java/JavaVirtualMachines/....


I went through the other post as David suggested and manipulated my eclipse.ini file to reflect the proper location... Below is a copy of the modified file :

-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home




This still nets the same result which is that when i try to start eclipse i get the error message telling me to install JRE6
Re: cant open eclipse [message #1155540 is a reply to message #1155442] Fri, 25 October 2013 20:37 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1334
Registered: July 2009
Senior Member
On 10/25/2013 6:15 PM, Chris Mcmahon wrote:
> Too add to this post I am having the same issue.
> I have gone as far as rolling back from Mavericks on my mac and
> reloading Mountain Lion.
> I can verify that my Java install is current through terminal.
> If I try to open eclipse it prompts me to load JRE6 ... By doing that
> it installs JRE6 in the following directory
> /System/Library/Java/JavaVirtualMachines/.....
>
> My actual JRE is installed here:
>
> /Library/Java/JavaVirtualMachines/....
>
>
> I went through the other post as David suggested and manipulated my
> eclipse.ini file to reflect the proper location... Below is a copy of
> the modified file :
>
>
> -startup
> ./../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
> --launcher.library
> ./../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
>
> -product
> org.eclipse.epp.package.jee.product
> --launcher.defaultAction
> openFile
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> --launcher.appendVmargs
> -vmargs
> -Dosgi.requiredJavaVersion=1.6
> -XstartOnFirstThread
> -Dorg.eclipse.swt.internal.carbon.smallFonts
> -XX:MaxPermSize=256m
> -Xms40m
> -Xmx512m
> -Xdock:icon=../Resources/Eclipse.icns
> -XstartOnFirstThread
> -Dorg.eclipse.swt.internal.carbon.smallFonts
> -vm
> /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
>
>
>
>
> This still nets the same result which is that when i try to start
> eclipse i get the error message telling me to install JRE6
The -vm entry has to be before the -vmargs entry. The way you have it,
it is being passed to the java vm not Eclipse.
Re: cant open eclipse [message #1155683 is a reply to message #1150231] Fri, 25 October 2013 23:00 Go to previous messageGo to next message
Chris Mcmahon is currently offline Chris Mcmahon
Messages: 2
Registered: October 2013
Junior Member
Quote:
The -vm entry has to be before the -vmargs entry. The way you have it,
it is being passed to the java vm not Eclipse.


I tried moving that and verified your same result ... still get the JRE error.

Also to add to this ... I copied the 1.7.0_45.jdk folder into the spot where Eclipse wants to install JRE6 ... nothing working there either ... it doesn't recognize it .
Re: cant open eclipse [message #1161829 is a reply to message #1155683] Tue, 29 October 2013 22:23 Go to previous messageGo to next message
Doug Slavens is currently offline Doug Slavens
Messages: 6
Registered: September 2013
Junior Member
I do most work on windows I'm so not too familiar with running eclipse/java on various mac versions. Could there be a possibility there is some sort of incompatibility - like having a 32 bit OS trying to launch a 64 bit Java or something similar between Eclipse and Java? If executing the command java -version never worked from within a shell from the appropriate directory then I would check to make sure that all the various installs match - 64 bit OS/Java/Eclipse or 32 bit as appropriate.
Re: cant open eclipse [message #1162443 is a reply to message #1161829] Wed, 30 October 2013 07:26 Go to previous messageGo to next message
Arnav Kumar is currently offline Arnav Kumar
Messages: 16
Registered: October 2013
Junior Member
Re: cant open eclipse
add jre path in your eclipse. For this go to project property and than select Java Build Path. Now in Liabraries add your jre.


Re: cant open eclipse [message #1168291 is a reply to message #1162443] Sun, 03 November 2013 02:16 Go to previous message
anto gerva is currently offline anto gerva
Messages: 11
Registered: June 2012
Location: Canada, Qu├ębec
Junior Member
Make sure you use a x86 build if you're running on a x86 system or x64 if you're running on a x64 system.
Previous Topic:F3 navigation: how to see what libs are missing?
Next Topic:Session timeout when running servlet in debugger
Goto Forum:
  


Current Time: Sat Jul 26 03:11:42 EDT 2014

Powered by FUDForum. Page generated in 0.01837 seconds