Deployment
Michael Hall
mik3hall at gmail.com
Wed Apr 1 22:39:49 UTC 2015
On Mar 31, 2015, at 4:52 PM, David DeHaven <david.dehaven at oracle.com> wrote:
>>
>> Do you know should JavaAppLauncher work with the Java 9 builds?
>
> Yes, it should since it uses JLI (libjli.dylib) to start the vm. At least, I'm not aware of any problems with it. The same code should work with any reasonable version of JLI (JDK 7+).
>
> -DrD-
>
OK, basically I figured if I could any kind of application bundle built I could modify it from there.
So, I created the javapackager type jar from my application launching jar.
javapackager -createjar -appclass us.hall.hp.common.LoaderLaunchStub -srcdir . -srcfiles launcher.jar -noembedlauncher -outdir . -outfile launcher9.jar -v
-noembedlauncher is deprecated
Updating jar file: /Users/mjh/HalfPipe/launcher.jar
Then made my bundle…
javapackager -deploy -srcdir . -srcfiles halfpipepkg.jar -outdir . -outfile HalfPipePkg -appclass us.hall.hp.common.LoaderLaunchStub -native -name HalfPipe
No base JDK. Package will use system JRE.
Creating app bundle: /Users/mjh/HalfPipe/./bundles/HalfPipe.app
Building DMG package for HalfPipe
Result DMG installer for HalfPipe: /Users/mjh/HalfPipe/./bundles/HalfPipe-1.0.dmg
Building PKG package for HalfPipe
Bundler Mac App Store Ready Bundler skipped because of a configuration problem: No Mac App Store App Signing Key
Advice to fix: Install your app signing keys into your Mac Keychain using Xcode.
So I had a bundle, it overachieved a little bit and also signed it and created a .dmg, etc.
I cut and pasted in everything from my full application that this skeleton build had left out.
I checked plugins and saw that it had used the last JDK 8 I that I have installed. There might be a more current JRE 8 I haven’t got the matching JDK for yet. Anyhow, I replaced that with my JDK 9 and updated the Info.plist to reflect that.
Launching the application gets…
4/1/15 5:21:41.617 PM HalfPipe[3114]: Could not get function pointer for JLI_Launch.: (
0 CoreFoundation 0x00007fff8c5fe25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8db96e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8c5fe10c +[NSException raise:format:] + 204
3 HalfPipe 0x000000010b3b4de1 launch + 593
4 HalfPipe 0x000000010b3b4366 main + 70
5 HalfPipe 0x000000010b3b4314 start + 52
6 ??? 0x0000000000000001 0x0 + 1
)
Michael Hall
trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz
HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe
AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter
More information about the macosx-port-dev
mailing list