Eclipse 的JEE 版本中,使用JAXB 生成XSD文件的Java 类,

来源:互联网 发布:php 淘宝csv导入源码 编辑:程序博客网 时间:2024/06/01 13:06

1. 问题

Eclipse 的JEE 版本中,使用JAXB 生成XSD文件的Java 类

 浏览器中点击xsd 文件, 右键,生成,JAXB 类, 报告错误:

     Generate JAXB Classes - cannot find XJCFacade 


2. 解决方案

  把工程的java运行时环境,从jre变成jdk即可。


3. 参考


http://www.eclipse.org/forums/index.php/t/206797/


Changing the Java library from JRE to the JDK in the project settings worked fine. (after adding the JDK to the workspace in the Eclipse settings)

Your Project is pointing to JRE , not to JDK .
Update JRE Home directory with JDK Home directory.

Because JDK 1.6 or 1.7 onwards xjc.jar will be bundled along with JDK.


原创粉丝点击