How can I get Eclipse on OSX to use Java 1.6?

I just installed Java 1.6 on my OSX and everything works brilliantly, except that Eclipse refuses to start. He creates a huge invitation from which I cannot copy / paste, but he clearly states that he wants to use Java 1.5 and can no longer find it.

I see nothing in my configuration files about which version of Java it should look for. Has anyone dealt with this?

Thanks in advance.

+2
source share
3 answers

on / Applications / Eclipse / Eclipse.app right-click and select "Show Package Contents" open Contents /Info.plist with a text editor NOT plist Editor

add <string>-vm</string> <string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>

to

 <key>Eclipse</key> <array> <!-- add it here --> </array> 

save it and restart.

+4
source

If I am mistaken, Java 1.6 vm on Mac is only 64 bits. To use it, you will need a 64-bit version of Eclipse. The only 64-bit eclipse port on mac is the new cocoa construct, find here .

In a few weeks, the Galileo release will end, where you can find the 64-bit cocoa port by going to Eclipse Classic β†’ Other downloads.

If you want to keep the current eclipse installation, you will have to do what the other answers suggest and change them to use 1.5

+3
source

You should switch to the previous version of Java, in the "Utilities", "Java Settings" section and drag 1.5 32 bits as the first choice.

The cause of the error is that the JINI SWT bundled libraries seem to be compiled for specific platforms only.

You can always check the Console for specific error messages.

0
source

Source: https://habr.com/ru/post/892489/


All Articles