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 に答える