3

按照使用 Eclipse JUNO EE 的 JAXB 教程,我得到以下关于生成 JAXB 类的信息。

我相信我正在遵循这些步骤,但是搜索网络返回的结果很少,感谢您提供任何帮助。

cowardly refuses to write to a non-existent directory "src"

Usage: xjc [-options ...] <schema file/URL/dir/jar> ... [-b <bindinfo>] ...
If dir is specified, all schema files in it will be compiled.
If jar is specified, /META-INF/sun-jaxb.episode binding file will be compiled.
Options:
  -nv                :  do not perform strict validation of the input schema(s)
  -extension         :  allow vendor extensions - do not strictly follow the
                        Compatibility Rules and App E.2 from the JAXB Spec*
4

1 回答 1

1

-d参数表示“输出目录必须已经存在,XJC 绑定编译器不会为您创建它。”

src 目录必须在那里,否则 xjc 库将懦弱地拒绝。

于 2014-01-14T02:48:26.110 回答