Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest
Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785746] Thu, 19 April 2018 09:49 Go to next message
Vlad Ghitulescu is currently offline Vlad GhitulescuFriend
Messages: 7
Registered: January 2018
Junior Member
Hello!


I'm trying to install Eclipse on my iMac (late 2012, running macOS Sierra 12.6).

The installer said it needs the old Java SE 6 runtime and lead me to the download.

index.php/fa/32648/0/

After downloading and installing the old Java SE 6 for Mac

index.php/fa/32647/0/

the Eclipse installer let me know that my JVM is too old.

index.php/fa/32646/0/

Any idea?

Thanks!


Regards,
Vlad
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785749 is a reply to message #1785746] Thu, 19 April 2018 10:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
Unfortunately the Mac OS itself gives this bogus information about needing Java 1.6, not the installer itself. This and related issues are described here:

https://wiki.eclipse.org/Eclipse/Installation#Install_a_JVM

So best you install a 1.8 or full JDK, e.g., from here:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

I think a 9 or 10 JDK will work as well, but only Oxygen will work with these.

http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785756 is a reply to message #1785749] Thu, 19 April 2018 11:23 Go to previous messageGo to next message
Vlad Ghitulescu is currently offline Vlad GhitulescuFriend
Messages: 7
Registered: January 2018
Junior Member
Thanks for the reply, Ed!

I uninstalled the old Java and installed the Version 1.8.

Trying to install Eclipse (the latest) afterwards brings me the first message (needing Java SE 6 Runtime - Version - see my first screenshot) again, so I'm stuck in the loop somehow.

How to break this vicious cycle? ;-)
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785761 is a reply to message #1785756] Thu, 19 April 2018 12:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
On the second (final) page of the installer, there is a drop down choice with the JVM that will be used for the installation. Does that value appear to be correct, pointing to your existing 1.8 JDK installation? Be sure it does. A correct choice should appear in the drop down. The installer uses this command line to get a listing of the installed JREs

/usr/libexec/java_home -X

This value is saved in the eclipse.ini of the installation. You could edit that file:

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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785762 is a reply to message #1785761] Thu, 19 April 2018 12:10 Go to previous messageGo to next message
Vlad Ghitulescu is currently offline Vlad GhitulescuFriend
Messages: 7
Registered: January 2018
Junior Member
With the installer I don't get any further than the error message saying that my current Java should be downgraded to Version 6 (as shown in my first screenshot).

The further information on the error message leads to

https://support.apple.com/kb/DL1572?locale=de_DE

where I can download the Version 6.

Pasting "/usr/libexec/java_home -X" in Terminal.app gives me this:

---
Vlads27iMac2012:~ Vlad$ /usr/libexec/java_home -X
Unable to find any JVMs matching version "(null)".
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array/>
</plist>
No Java runtime present, try --request to install.

---
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785768 is a reply to message #1785762] Thu, 19 April 2018 12:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
Sorry, I thought you got the installer to run. The fact that this command doesn't find anything also suggests that when you try to run the installer no JDK will be found.

This page talks about some pkg file:

https://java.com/en/download/help/mac_install.xml

But I guess that's bogus.

There are more/different instructions here:

https://www.java.com/en/download/faq/java_mac.xml

There's stuff here has well:

https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html

I Googled for "installing java on mac" to find these things. Some set of instructions must work...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785770 is a reply to message #1785768] Thu, 19 April 2018 13:10 Go to previous messageGo to next message
Vlad Ghitulescu is currently offline Vlad GhitulescuFriend
Messages: 7
Registered: January 2018
Junior Member
I've googled the exact text of my error and found a lot of similar reports for different software (like LibreOffice etc.)

I've found here:

http://osxdaily.com/2017/06/29/how-install-java-macos-high-sierra/

that I have to install not the jre, but the jdk.

I did and BOOM - Eclipse Oxygen 3 A is here!

Thanks a lot, Ed!

Until next time,
Vlad
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785775 is a reply to message #1785770] Thu, 19 April 2018 14:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
Registered: July 2009
Senior Member
Yes, I did mention installing a full JDK for a reason. :-P

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785779 is a reply to message #1785775] Thu, 19 April 2018 16:22 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

This is also in the top-most sticky post.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785780 is a reply to message #1785775] Thu, 19 April 2018 18:11 Go to previous messageGo to next message
Vlad Ghitulescu is currently offline Vlad GhitulescuFriend
Messages: 7
Registered: January 2018
Junior Member
That's only now that I understand this, sorry!
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785781 is a reply to message #1785779] Thu, 19 April 2018 18:16 Go to previous messageGo to next message
Vlad Ghitulescu is currently offline Vlad GhitulescuFriend
Messages: 7
Registered: January 2018
Junior Member
:-( I didn't discover this in all of the results of the search "mac eclipse installer" I did before :-( Totally my fault!
Re: Unable to install on Eclipse on Mac: Eclipse want the old Java - and then the newest [message #1785787 is a reply to message #1785781] Thu, 19 April 2018 21:22 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

I wouldn't worry about it. The important part is that you figured it out.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:How to resolve proxy problems
Next Topic:Eclipse 4.7 - Malformed class name error upon Run As
Goto Forum:
  


Current Time: Tue Mar 19 07:07:05 GMT 2024

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

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

Back to the top