universalJavaApplicationStub icon indicating copy to clipboard operation
universalJavaApplicationStub copied to clipboard

Java using modules (-p and -m options)

Open pzw opened this issue 6 years ago • 2 comments

I'm submitting a…

  • [ ] bug report
  • [x] feature request
  • [ ] other

Do you plan to have a way using Java 11/14 with module-path instead classpath ?

  1. a way to give modules path and main module to JarBundler ANT Task
  2. updating universalJavaApplicationStub to launch java with -p and -m options

pzw avatar Apr 07 '20 07:04 pzw

Good catch. I haven't worked with the new Java module system yet, so this was indeed a bit out of scope.

You also pointed out, that this requires an updated JarBundler ANT task so I would need to synchronize development with the other project.

Not sure yet, when to find time for this at the moment...

tofi86 avatar Apr 29 '20 18:04 tofi86

OK, thank you for your answer.

I use a modified version of your universalJavaApplicationStub. It use two additionnal entries in java dictionnary of Info.plist : ModulePath and MainModule. These entries are manually added to Info.plist, because I have not worked on ANT task to produce this file automatically). They are used to launch java in "modular mode" if not class path is defined.

Best regards

pzw avatar May 01 '20 06:05 pzw