Running module jar programatically
Stephane Epardaud
stef at epardaud.fr
Wed Dec 2 15:24:10 UTC 2015
Hi,
I have a modular jar produced by Java 9 EA + Jigsaw, I can run it with
"java -mp mlib -m my.module", but how can I run it programmatically in Java?
ATM I'm using URLClassLoader to load it and run it, but I _think_ it
does not make it "modular" and the module package visibility checks are
turned off.
What should I be looking at to load this module at runtime and run it as
a Java module?
Thanks, cheers.
More information about the jigsaw-dev
mailing list