Reputation: 272
I'm trying to use a JRE bundled Eclipse version under Mac.
Interestingly, it works when I run
./Eclipse.app/Contents/MacOSX/eclipse
So eclipse is able to find and use the bundled JRE.´
It is a Eclipse Neon, where the Info.plist file contains the -vm argument pointing to ../../../jre/lib/jli/libjli.dylib
.
However, running via open ./Eclipse.app
(or using Finder) I get "Eclipse executable launcher was unable to locate its companion shared library".
I do not have any JRE installed on the system. Sadly, using open I cannot get stderr or something as far as I know.
Upvotes: 2
Views: 3677
Reputation: 893
In my case the -vm parameter in the .plist file had the wrong format. The parameter name and the value need to be in separate string elements:
<key>Eclipse</key>
<array>
<string>-vm</string>
<string>../../../jre/lib/jli/libjli.dylib</string>
</array>
As to why it worked when starting the executable file: Apparently the vm parameter is read from the .plist file when running the .app file, but from the eclipse.ini file when starting the executable directly.
Upvotes: 1