Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse don't find installed JRE on Mac OS X

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?


I found a solution so I would like to share. Actually nothing worked, I ve also called Apple and they had no idea. So I ve downloaded Windows 7 and installed it on my Mac with bootcamp. Now everything works fine.

like image 753
edoardo849 Avatar asked Apr 28 '11 10:04

edoardo849


People also ask

Where is my JRE installed Mac?

In macOS, the JRE installation path is /Library/Internet Plug-Ins/JavaAppletPlugin. plugin/Contents/Home/ . The root directory of the JRE software installation. This directory contains README, and other JRE folders.

How do I know if JRE is installed in Eclipse?

To check with what Java version (JRE or JDK) Eclipse is running, do the following: Open the menu item Help > About Eclipse . (On the Mac, it's in the Eclipse-menu, not the Help-menu) Click on Installation Details .

Why does my Mac say unable to locate Java Runtime?

The message “Unable to load Java Runtime Environment” means that the Mac computer cannot load JRE, either because it is out of date or (more usually) because it has not yet been downloaded and installed. It can also happen after the computer OS X has been updated, e.g. to 10.14 Mojave from 10.13 Maverick.


2 Answers

I saw this post solution!

It helped me solve my problem I had on my mac after a fresh install of leopard. Seems like these variables have to be set manually or so.

like image 65
Craig Wayne Avatar answered Oct 19 '22 03:10

Craig Wayne


Click on project--> Build Path-->Configure Build Path...-->Libraries tab-->Click on Add Library button. Select JRE System library than select JRE if not found than you can specify your own JRE.I think this might help.

like image 2
Ankit Avatar answered Oct 19 '22 02:10

Ankit