java - 关于引用第三方jar的二次打包
巴扎黑
巴扎黑 2017-04-18 09:13:43
0
3
726

部门要求进行一些常规性的功能封装,可是发现很多引用了第三方的jar包,如果进行二次打包成jar包,会出现java.lang.NoClassDefFoundError的异常,导致没法使用,请教该怎么解决这种问题呢?

巴扎黑
巴扎黑

reply all(3)
刘奇

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

PHPzhong

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template