Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse not finding installed JRE on Mac OS X  () 1 Vote
Eclipse not finding installed JRE on Mac OS X [message #667360] Thu, 28 April 2011 10:24 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: April 2011
Junior Member
Hello, I'm trying to work with JAVA in Eclpise (Helios) and I'm running on Mac OS X 10.6.7. When I try to open a new Java Project it tells me that I don't have any JRE installed.

Using terminal it says that the current javac -version is 1.6.0_22. Now, I read about specifying a path in Eclipse->Preferences->Java->installed JRE to Library/Framework/JavaVM/Versions/1.6/home the problem is that after "Versions" I'm finding only "aliases" and not folders. If I click on that it tells me that the alias is not working.

So I'm stuck here: anybody has a solution?
Re: Eclipse not finding installed JRE on Mac OS X [message #667380 is a reply to message #667360] Thu, 28 April 2011 12:31 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.04.28 4:25, edoardo849@gmail.com wrote:
> Hello, I'm trying to work with JAVA in Eclpise (Helios) and I'm running
> on Mac OS X 10.6.7. When I try to open a new Java Project it tells me
> that I don't have any JRE installed.
>
> Using terminal it says that the current javac -version is 1.6.0_22. Now,
> I read about specifying a path in Eclipse->Preferences->Java->installed
> JRE to Library/Framework/JavaVM/Versions/1.6/home the problem is that
> after "Versions" I'm finding only "aliases" and not folders. If I click
> on that it tells me that the alias is not working.
>
> So I'm stuck here: anybody has a solution?

When you install Eclipse for Java work, you must also install a proper
JDK (not merely use the JRE that can execute Eclipse and other
Java-based programs). This is because Java development requires a JDK.

In addition, best practice is to "wire up" that JDK to Eclipse via
eclipse.ini. See here:

http://wiki.eclipse.org/Eclipse.ini

If you would like to read a detailed tutorial on setting up (my version
of) the Eclipse tool stack for Java development, check out

http://www.javahotchocolate.com/tutorials/eclipse-summary.ht ml
Re: Eclipse not finding installed JRE on Mac OS X [message #667415 is a reply to message #667360] Thu, 28 April 2011 15:11 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 4/28/11 6:25 AM, edoardo849@gmail.com wrote:
> Hello, I'm trying to work with JAVA in Eclpise (Helios) and I'm running
> on Mac OS X 10.6.7. When I try to open a new Java Project it tells me
> that I don't have any JRE installed.
>
> Using terminal it says that the current javac -version is 1.6.0_22. Now,
> I read about specifying a path in Eclipse->Preferences->Java->installed
> JRE to Library/Framework/JavaVM/Versions/1.6/home the problem is that
> after "Versions" I'm finding only "aliases" and not folders. If I click
> on that it tells me that the alias is not working.
>
> So I'm stuck here: anybody has a solution?

The Installed JREs in my OS X Eclipse installations all point to
/System/Library/Frameworks/JavaVM.framework/Versions/...
For example, /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Hom e

I'm pretty sure that they were detected automatically; I didn't have to
manually configure the locations.
Did you try using the Search... button in the Installed JREs page of
preferences?
When trying to Add.. a JRE, did you select MacOS X VM as the "type?"

Eric
Previous Topic:Double click for bat files no longer working
Next Topic:Tomcat can't find Eclipse deployed app
Goto Forum:
  


Current Time: Sat Apr 20 01:22:29 GMT 2024

Powered by FUDForum. Page generated in 0.08304 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top