Re: jlink - Adding module at execution time

2017-03-13 Thread Alan Bateman
On 13/03/2017 08:21, Gunnar Morling wrote: Got it. I guess what confused me was that --module-path and --module are listed under "where options include" of java -help. So I assumed they could be given in any order, not really noticing that last usage example. As it happens, Chris Bensen notice

Re: jlink - Adding module at execution time

2017-03-13 Thread Gunnar Morling
Got it. I guess what confused me was that --module-path and --module are listed under "where options include" of java -help. So I assumed they could be given in any order, not really noticing that last usage example. 2017-03-13 9:01 GMT+01:00 Alan Bateman : > On 13/03/2017 07:52, Gunnar Morling wr

Re: jlink - Adding module at execution time

2017-03-13 Thread Alan Bateman
On 13/03/2017 07:52, Gunnar Morling wrote: Thanks for your help. It was failing because I had the "--module" parameter specified before the "--module-path" parameter: img/bin/java --module a/a.A --module-path modules This results in "FindException: Module a not found". It works if I spec

Re: jlink - Adding module at execution time

2017-03-13 Thread Gunnar Morling
Thanks for your help. It was failing because I had the "--module" parameter specified before the "--module-path" parameter: img/bin/java --module a/a.A --module-path modules This results in "FindException: Module a not found". It works if I specify the "--module-path" option first: img/

Re: jlink - Adding module at execution time

2017-03-12 Thread Mandy Chung
> On Mar 12, 2017, at 2:52 PM, Alan Bateman wrote: > > On 12/03/2017 21:20, Gunnar Morling wrote: > >> Hi, >> >> I've created a custom runtime image using jlink and would like to add >> an additional module at execution time which should be the module with >> the main class. >> >> But that ad

Re: jlink - Adding module at execution time

2017-03-12 Thread Alan Bateman
On 12/03/2017 21:20, Gunnar Morling wrote: Hi, I've created a custom runtime image using jlink and would like to add an additional module at execution time which should be the module with the main class. But that additional module is not found when running /bin/java --module-pat

jlink - Adding module at execution time

2017-03-12 Thread Gunnar Morling
Hi, I've created a custom runtime image using jlink and would like to add an additional module at execution time which should be the module with the main class. But that additional module is not found when running /bin/java --module-path path/to/additional-module --module com