OS X El Capitan: Eclipse runs but exported app requires legacy Java SE 6 [message #1749189] |
Fri, 02 December 2016 20:21 |
Larry Edwards Messages: 4 Registered: December 2016 |
Junior Member |
|
|
We're developing an RCP application under Mac OS X with:
Eclipse for RCP and RAP Developers
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
and Oracle JDK 1.8.0_25 is installed. Eclipse 4.4.2 runs fine, but double clicking on our application (generated using the Export Product wizard) brings up the dreaded "you need to install the legacy Java SE 6 runtime" dialog.
The application will run if started from the command line using:
java -XstartOnfirstThread -Djava.awt.headless=true -jar org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
although then we get no splash screen.
If we alter JVMCapabiities in Info.plist in /Library/Java/JavaVirtualMachines/jdk1.8.0_.../Contents adding JNI and BundledApp, then double clicking on the application will work, but we'd prefer not to force users to do this.
It seems that since Eclipse will run without modifying the JDK Info.plist, our application should be able to as well. Does anyone know what Eclipse is doing that our application isn't, and know how to fix this for our application?
EDIT: I forgot to mention that the application runs fine from within the IDE...
Thanks!
Larry
[Updated on: Fri, 02 December 2016 20:49] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08946 seconds