Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Java using modules (-p and -m options) #83

Open
1 of 3 tasks
pzw opened this issue Apr 7, 2020 · 2 comments
Open
1 of 3 tasks

Java using modules (-p and -m options) #83

pzw opened this issue Apr 7, 2020 · 2 comments

Comments

@pzw
Copy link

pzw commented Apr 7, 2020

I'm submitting a…

  • bug report
  • 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
@tofi86
Copy link
Owner

tofi86 commented Apr 29, 2020

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...

@pzw
Copy link
Author

pzw commented May 1, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants