can't run forked project while other can
Answered
I am pulling branch from https://github.com/tychobrailleur/HO/tree/java-14 and trying to run the project.
The project built successfully but then when launching it throws the following error:
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules checker.qual and org.checkerframework.checker.qual export package org.checkerframework.checker.signedness to module scribejava.core
I am the only one from the development team having such error and we are all using IDEA.
I guess it might have something to do with module-info.java but I am not sure and I have no idea on how to fix it.
Please sign in to leave a comment.
I finally got more verbose errors (still cant figure out what to do but it might help but it might be linked to https://github.com/typetools/checker-framework/issues/1935)
I have hundreds of line as follow:
Hello,
Looks like https://youtrack.jetbrains.com/issue/IDEA-235898
Am I right that it runs fine using Gradle? You may set Gradle as runner in "Settings/Preferences | Build, Execution, Deployment | Build Tools | Gradle"
Hello,
It is not the same issue as the one you shared a link for.
I can run task compileJava fine:
But if I try to run the project either from IDEA or from Gradle I got the following:
Am I got you right that running using Gradle outside IDE also results in the same error? Does Gradle run work fine on other machines?
I never had issue before with gradle / IDEA. Running the project with java 8 and java 11 works well. Only this branch wich is java-14 is causing me issues while others can run it. I have removed and reinstalled IDEA without success.
Do others use the same JDK/Gradle version?
We all use same JDK openjdk-14 and for gradle it is set via the wrapper to version 6.4.1
And it works fine in terminal on other machines, but doesn't work in terminal on yours? When you use terminal only Gradle is reliable for project configuration/build.
Everyone in the team including me is using IDEA. I have just tried to copy/paste into the terminal the command indicated by IDEA hoping to have a more verbose stacktrace but I got exactly the same output, here below is the (very long) command
Yaroslav, additional information.
I completely cleaned my install (java, gradle and IDEA). Now I can run my project using gradle but not IDEA (this is what you suggested in the first post). Is it a known issue in IDEA 2020.1 and java 14 ?
Yes, there might be an issue with classpath generated by IDE, but Gradle handles it correctly. We're investigating the issue. For now please use Gradle runner.
Ok I will do that until it gets fixed in IDEA ... thank you