|Installing Eclipse on MacBook Pro [message #1741054]
||Mon, 22 August 2016 14:33
| Norman Paterson
Registered: August 2016
I've just installed Eclipse 3.7.2 on my MacBook Pro running OSX 10.9.5. I chose 3.7.2 because I want also to use Eclipse on my iMac which runs OSX 10.6.8, and Eclipse 3.7.2 was recommended - I forget where. The Eclipse workspace is shared on DropBox.|
I've worked through the Workbench User Guide to the Java Development User Guide, as far as Preparing Eclipse. The Macs come with JRE 1.6. The advice in Preparing Eclipse is to install SDK 1.4 as well as the latest one.
I was getting nowhere trying to find a suitable download of 1.4 so I decided to skip that for the moment and install the latest which is 1.8, with both the JRE and the JDK. (Advice on where to find 1.4 for the Mac appreciated!)
I downloaded both JRE and JDK from Oracle and installed them on the MacBook Pro without any problem. Now, I can do this on Terminal:
normans-mbp-2:~ norman$ java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
normans-mbp-2:~ norman$ ls -l /Library/Java/JavaVirtualMachines/
drwxr-xr-x 3 root wheel 102 21 Aug 21:38 jdk1.8.0_102.jdk
I have no reason to suppose anything is wrong with these - no error messages for example. But I can't get Eclipse to find them. I go to Eclipse/Preferences/Java/Installed JREs. "Java SE 6 (Mac OS X Default)" is the only one listed. I note that it is installed in /System/Library, not /Library - but nothing about that was offered as an option during installation.
The help text says "Additional SDKs can be added by searching the hard drive for installed SDKs. To do so, simply click the Search... button and specify a root folder for the search." But there is nowhere to specify a root folder. If I click Search, a window opens and closes too quickly to read, but seeming to report the progress of the search. Nothing changes in the "Installed JREs" table.
I've tried restarting Eclipse, tried restarting the Mac, and sacrificed 2 goats, with no joy.
My questions are:
1. What do I need to do to have Java 8 show up in the Installed JREs table?
2. And where can I find a Java 1.4 for the Mac?
I see Mac installation has come up before, but not recently. Apologies if I have missed a reply that deals with it. Thanks for your help.
Powered by FUDForum
. Page generated in 0.02637 seconds