How to add the argument --add-modules to javac and java?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add the argument --add-modules to javac and java?

Erno Scheiber
Hi,

In Java 9 not all packages are included in the graph of the packages.
Now, this is the case of the package java.corba.
The argument
    --add-modules java.corba ...
must be added to javac, respectivelly java in a terminal.
How to do that within apache-ant?

Best regards,
Erno Scheiber

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Reply | Threaded
Open this post in threaded view
|

Re: How to add the argument --add-modules to javac and java?

Stefan Bodewig
On 2017-08-14, Erno Scheiber wrote:

> In Java 9 not all packages are included in the graph of the packages.
> Now, this is the case of the package java.corba.
> The argument
>     --add-modules java.corba ...
> must be added to javac, respectivelly java in a terminal.
> How to do that within apache-ant?

For <java> a nested <jvmarg> is the way to go, for <javac> it's the
corresponding <compilerarg>:

<java ...>
  <jvmarg line="--add-modules java.corba"/>
</java>

<javac ...>
  <compilerarg line="--add-modules java.corba"/>
</javac>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]