84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
部门要求进行一些常规性的功能封装,可是发现很多引用了第三方的jar包,如果进行二次打包成jar包,会出现java.lang.NoClassDefFoundError的异常,导致没法使用,请教该怎么解决这种问题呢?
Just add these third-party jar packages to the project's lib
The IDE seems to have options such as compileDependencies when creating Artifact. You can package dependent jar packages, but these third-party jars must be added to the library first in the project
In your project, check whether the jar package where your class is located is imported. If not, you can use mvn install to import it.
Just add these third-party jar packages to the project's lib
The IDE seems to have options such as compileDependencies when creating Artifact. You can package dependent jar packages, but these third-party jars must be added to the library first in the project
In your project, check whether the jar package where your class is located is imported. If not, you can use mvn install to import it.