[Solved] Eclipse Run Java Error: NoClassDefFoundError: javax/xml/bind/*

Problem phenomenon: When running the program, prompt: NoClassDefFoundError: javax/xml/bind/*

The cause of the problem: JDK 8 and previous versions contain the jaxb jar by default; the currently used JDK11 version lacks jaxb-apipackages

solution:

1) I am going to replace JDK with version 1.8 under verification, but eclipse-2020.6 does not support JDK below 11 – I don’t know if the latest version of IDEA supports it.

Directly download the 2017 eclipse version to temporarily circumvent it. The download address of the old version of the installation package is as follows:

https://wiki.eclipse.org/Older_Versions_Of_Eclipse

When eclipse starts, you can manually set the corresponding JRE environment, refer to:

https://blog.csdn.net/qq_36411874/article/details/78250415

 

2) Supplementary jaxb Corresponding package to JDK11 package

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *