您的位置:首页 > 编程语言 > Java开发

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

2018-03-26 09:38 495 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java xjc xml xsd jaxb
相关文章推荐