federkasten / appbundle-maven-plugin

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata
Apache License 2.0
179 stars 56 forks source link

Use specific JVMVersion #55

Open mobreza opened 6 years ago

mobreza commented 6 years ago

Our application requires Java 8 and the bundle does not embed the JRE. The Info.plist contains:

<key>JVMVersion</key>
<string>1.8</string>

I have multiple versions of Java on my system and the JavaAppLauncher picks Java 10. There is no reference to JVMVersion in https://github.com/federkasten/appbundle-maven-plugin/blob/master/native/main.m.

The project at https://bitbucket.org/infinitekind/appbundler has updated code for finding the appropriate JVM.