ClassNotFoundExceptionEmpty test suitejavalangNoClassDefFoundError
ClassNotFoundException
Error report:
once IntelliJ idea is running, it will report an error, and no class can be found
in the system java.lang.ClassNotFoundException
Solution:
open project structures (ALT + Ctrl + Shift + s) to check whether the directory set by project – out and module – path – out exists.
Generally, the module – path – out is set under the target directory, but if there is no target directory at the first run, it must be generated by Maven build, so either change the out path or run Maven build first.
Empty test suite
Error:
JUnit running times cannot find the test group
process finished with exit code 1
class not found:“ XXX.XXXTest ”Empty test suite.
Solution:
Run Maven test and download relevant jar packages
java.lang.NoClassDefFoundError
Error:
minaserver logger – & gt; error{ ContextLoader.java:336 }-Context initialization failed java.lang.NoClassDefFoundError : Lcom/cebbank/gage/dao/UserDao;
Solution:
if you want to change the project name, remember to delete all the configuration files (. IML,. Idea, etc.) and leave only the folder and folder of the project code pom.xml File, and then re import the Maven project.
Read More:
- IntelliJ idea sets the default working directory
- [solved] error: module not specified (IntelliJ idea)
- How can IntelliJ idea completely delete a project
- IntelliJ idea automatically generates serialVersionUID
- IntelliJ idea debugging Java 8 stream
- Git uploads local IntelliJ idea project to GitHub
- Solve the error of POM file failed to read artifact descriptor for XXX under IntelliJ idea
- Split screen display method in IntelliJ idea
- Upgrade to IntelliJ idea 2021.2 and start the project with an error
- IntelliJ idea / eclipse automatically generate author annotation signature
- The solution of notes floating red error in IntelliJ idea
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- Solve the problem that target code version of Maven project sub module in IntelliJ idea is always rolled back
- IntelliJ idea code did not report an error, compilation failed
- The process of solving Intellij IDEA can’t load jvm DLL error at a time
- MacOS: How to Fix Intellij-IDEA main menu disappears Bug
- [Solved] IntelliJ IDEA Compile Groovy Error: GroovyRuntimeException: This script or class could not be run.
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- Solution of spring auto injection always report error in IntelliJ idea