Apple internal api's

Michael Hall mik3hall at
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…
Exception in thread "main" java.lang.IllegalAccessError: class us.hall.osx.OSXApplication (in module: Unnamed Module) cannot access class (in module: java.desktop), 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/ 

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?

[2] <>

Michael Hall

More information about the jigsaw-dev mailing list