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.
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.
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 .
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With