New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassNotFoundException #918
Comments
The exception stack: |
@lovekill, please provide the following information if it's possible what kind of project are you using? Maven/Gradle/Eclipse? Please share a sample project if it's possible, which would be helpful to diagnostic. |
gradle project . |
Good to know problem solved! |
I had the same issue and this worked for me. Thanks! |
I tried to clean the JAVA language server and it did not work for me. Can anyone please tell what is the workaround for this issue? My team is still at JAVA 8 hence I am not sure if I will be able to upgrade to the latest version! Could you please let me know the extension version in which this is fixed? Exception has occurred: java.lang.ClassNotFoundException My JAVA Test runner is at version - 0.22.0 |
@pkondekar29 JDK 11 is only required to launch the Java language server, you can still use JDK 1.8 to build your project. What if trying the following setting?
|
One thing that worked to clear this problem up for me was to build the project on the command line (without running tests). After that the tests run just fine via the VS Code GUI. I'm using Maven, so in the project folder I run: mvn clean install -DskipTests After that the tests work. |
@TeaTotalin Sounds like the project could not be built successfully from the extension, is it possible to provide a sample project? |
The extension worked fine for a while. But now the tests have stopped building all classes.
|
That's because the build job is done by command line, which could not be done correctly by the extension. It would be helpful for us to understand the problem if a sampe project can be provided. |
Update to my problem.
|
@AlexanderTirik, do you mean the execution results of the maven goal via the maven extension are different? |
steps:
then an ClassNotFoundException will appear in debug console
The text was updated successfully, but these errors were encountered: