简体   繁体   中英

What do I need to do to stop my Java app from triggering the Java 6 legacy download on OS X

I have a Java app available for download (AuctionSieve).

When you try to run it on OS X El Capitan (or Mavericks), it pops up "To open "AuctionSieve" you need to install the legacy Java SE 6 runtime." This is obviously a non-optimal experience for users. Besides which, I'd like it to use Java 8 so it can benefit from better security/performance/fixes etc.

What do I need to change about the way I package my app so it can just use the latest Java?

BTW My Info.plist file has JVMVersion set to 1.5+ and I've tried changing it to 1.8+ but that has no effect.

It appears I should be using this:

https://bitbucket.org/infinitekind/appbundler

It appears from Java 8, this is the way Oracle means for it to be done:

https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javapackager.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM