Project java.lang.NoClassDefFoundError exception.

After the deployment of the project call interface failed: Exception information:

 

NoClassDefFoundError

ClassNotFoundException

Note that these two are different.

Specific turn  https://www.cnblogs.com/xyhz0310/p/6803950.html

Queries related to Bowen. Class may be compiled problem. Passed up a jar full yes. .class

So the first investigation java version are the same.

First check the server version of java:

really. Centos with a built-in open jdk 

Delete open jdk jdk installation point

jdk installation  https://www.cnblogs.com/stulzq/p/9286878.html

Delete open jdk

java -version

no such file or directory deletion and clean appearance is open jdk

Softlinks after installation jdk. java default path / usr / bin / java 

problem solved. Interface is also through.

 

Guess you like

Origin www.cnblogs.com/1-Admin/p/10983239.html