error in running gradle based project with java9+ modules [message #1823524] |
Sat, 28 March 2020 03:55  |
Eclipse User |
|
|
|
I started a new gradle project with eclipse and with as simple as possible build.gradle. just added this:
Quote:
compile 'org.apache.commons:commons-math3:3.6.1'
then in module-info.java I added :
Quote:
requires commons.math3;
I got an error with a quickfix to take classpath entries to module path. after applying quick fix I added a simple main and tried to run with eclipse but I get this error:
Quote:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module commons.math3 not found, required by mymodule
I went to run configuration and this is the command eclipse excutes:
Quote:
/usr/lib/jvm/jdk-13.0.1/bin/java -Dfile.encoding=UTF-8 -p /home/hosseinmp76/Documents/eclipse-workspace/mymodule/bin/main -classpath /home/hosseinmp76/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-math3/3.6.1/e4ba98f1d4b3c80ec46392f25e094a6a2e58fcbf/commons-math3-3.6.1.jar -m mymodule/mymodule.Library
And in addition I can run the main with gradle with no problem.
What should I do?
I use eclipse 2020-03 and gradle 6+.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.14552 seconds