|
Re: Eclipse not finding installed JRE on Mac OS X [message #667380 is a reply to message #667360] |
Thu, 28 April 2011 12:31 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.08304 seconds