我想从 xml 文件创建 java 类。我使用 JIBX。我试试这个:
java -cp C:\Documents and Settings\kliver\Мои документы\Загрузки\jibx\lib\jibx-tools.jar org.jibx.schema.codegen.CodeGen -t C:\Documents and Settings\kliver\Мои документы\Загрузки\jibx\gen\ -w C:\Documents and Settings\kliver\Мои документы\Загрузки\jibx\V01_STD\STD_MP.xsd
但得到错误
C:\Documents and Settings\kliver>java -cp C:\Documents and Settings\kliver\Мои д
окументы\Загрузки\jibx\lib\jibx-tools.jar org.jibx.schema.codegen.CodeGen -t C:\
Documents and Settings\kliver\Мои документы\Загрузки\jibx\gen\ -w C:\Documents a
nd Settings\kliver\Мои документы\Загрузки\jibx\V01_STD\STD_MP.xsd
Exception in thread "main" java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: and. Program will exit.
我添加C:\Documents and Settings\kliver\Мои документы\Загрузки\jibx\lib\
到 PATH 和 CLASSPATH 变量,但它没有帮助。
我能做什么?