title: JAXB eclipse error: There's no JAXB 2.2 API in the classpath
body: <p>I am trying to generate java classes from xsd. I added to my library the following two files: <strong>com.sun.xml.bind_2.2.0.v201004141950.jar</strong> and <strong>com.sun.tools.xjc_2.2.0.jar</strong>, but it still gives me an error</p>
  
  <pre><code>Exception in thread "main" java.lang.ClassNotFoundException: There's no JAXB 2.2 API in the classpath
  at com.sun.tools.xjc.ClassLoaderBuilder.createProtectiveClassLoader(ClassLoaderBuilder.java:82)
  at com.sun.tools.xjc.XJCFacade.main(XJCFacade.java:65)
  </code></pre>
  
  <p>What can be the problem? When I created the project I chose JAXB 2.1 with jre target runtime. What do I need to include to make it run? </p>