Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » OS X El Capitan: Eclipse runs but exported app requires legacy Java SE 6 (Exported application requires legacy Java SE 6 runtime under Mac OS X 10.11 El Capitan)
OS X El Capitan: Eclipse runs but exported app requires legacy Java SE 6 [message #1749189] Fri, 02 December 2016 20:21 Go to next message
Larry Edwards is currently offline Larry EdwardsFriend
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

Re: OS X El Capitan: Eclipse runs but exported app requires legacy Java SE 6 [message #1749193 is a reply to message #1749189] Fri, 02 December 2016 21:48 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Does your application have its won .ini file? Have you tried adding a -vm parameter to it so ensure that it is using the JDK and not whatever the system default JRE is?
Re: OS X El Capitan: Eclipse runs but exported app requires legacy Java SE 6 [message #1749194 is a reply to message #1749193] Fri, 02 December 2016 21:52 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
See also these two topics:
https://www.eclipse.org/forums/index.php/t/9585/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=431116
Re: OS X El Capitan: Eclipse runs but exported app requires legacy Java SE 6 [message #1749198 is a reply to message #1749194] Fri, 02 December 2016 23:29 Go to previous message
Larry Edwards is currently offline Larry EdwardsFriend
Messages: 4
Registered: December 2016
Junior Member
Thanks Eric,

The app does have it's own .ini file and in fact the last thing we tried was to bundle the JVM and use the -vm flag to point to it, but that didn't fix it. I'll look at those forum threads you linked to see if I can see something we missed.

Cheers,

-Larry
Previous Topic:frustrated about Web App start
Next Topic:Eclipse won't open because PowerPC apps are no longer supported
Goto Forum:
  


Current Time: Fri Apr 26 23:05:16 GMT 2024

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

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

Back to the top