Generating JAXB classes in Eclipse from XSD

How to easily generate JAXB classes in Eclipse?

How to easily generate JAXB classes in Eclipse? Right click on the file and choose Generate -> JAXB classes. Just make sure you have in Project Libraries associated a JDK, not just a simple JRE, otherwise you will get this error: "Could not find or load main class com.sun.tools.internal.xjc.XJCFacade"