JDK jigsaw issues --patch-module specified more than once for

Answered

Hi All.

I'm using IC-171.3224.1 and trying to compile with JDK jigsaw 9-ea+157-jigsaw

I'm using two completely separated build systems ANT and IntelliJ.

So to fix some compilation probelm i have to add in ANT compiler flag:

--patch-module java.corba=F:/views2/r/BoazJDK9_rws/Qrelease/JarExt/jacorb/jacorb-omgapi-3.7.jar --add-modules java.corba

 

which works

When I'm trying do the same in IntelliJ:

I got an error:

"Error:java: java.lang.IllegalArgumentException: --patch-module specified more than once for java.corba"

 

 

 

0
6 comments

Please try adding it into Build, Execution, Deployment | Compiler | Shared build process VM options.

1

Thanks !!! It Works !

Can you please explain why ? what is the different ?

Should I add all  -add-exports/--add-modules there

Boaz

 

 

0

I've asked the responsible developer to comment.

0

Please note that once I added compiler flags to 'Java Compiler' such as -add-export , that above shared options no longer take effect.

I can't add -add-exports in the shared because it doesn't work (has no effect)

0

The failure related specifying the `--patch-module` as stated here -> https://stackoverflow.com/questions/45545718/cannot-compile-java-9-module-with-patch-module-in-intellij-idea-2017-2-1 doesn't seem to be resolved until now as well. Are there any plans to fix this?

0

Please sign in to leave a comment.