Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating jaxb classes from a schema

Tags:

java

eclipse

jaxb

I am trying to use the Jaxb classes generator in eclipse to generate jaxb classes from my schema. I receive the following error:

"The classpath for this project does not appear to contain the necessary libraries to proceed with class generation. Please insure that a JAXB implementation is available on the classpath."

How can i solve this problem?

like image 595
Erik Sapir Avatar asked Mar 26 '12 14:03

Erik Sapir


1 Answers

After a lot of research here is what I have done to fix the issue. Windows> Preferences> Java> InstalledJREs...make sure to point your jre to the jdk directory. I was pointing to JRE and as soon as I changed it to JDK, it started working. Hope this will help you guys.

like image 154
Amzi Avatar answered Sep 30 '22 15:09

Amzi