Apple internal api's

Michael Hall mik3hall at gmail.com
Wed Nov 25 01:52:11 UTC 2015


I know these are being addressed as part of JEP 272 [1], but for now.
I have a shell script that will launch my OS X app with most of it’s functionality. I think some appleevent related won’t work as less than a full app, but the app should run. It is completely unmodularized at this point though.
I get…
./halfpipe9.sh
Exception in thread "main" java.lang.IllegalAccessError: class us.hall.osx.OSXApplication (in module: Unnamed Module) cannot access class com.apple.eawt.Application (in module: java.desktop), com.apple.eawt is not exported to Unnamed Module

I found documentation for the addExports ‘get out of jail free’ option at JEP 261.
I tried...
java -XaddExports:us.hall.osx/com.apple.eawt=ALL-UNNAMED 

getting…
/halfpipe9.sh
Error occurred during initialization of VM
java.lang.RuntimeException: Unknown source module: us.hall.osx.OSXApplication

This is not in a module yet. addExports is not available?

[1] http://openjdk.java.net/jeps/272
[2] http://openjdk.java.net/jeps/261 <http://openjdk.java.net/jeps/261>

Michael Hall






More information about the jigsaw-dev mailing list