如何使用 Scala 程序 schema2src?
这可能更多是一个服务器故障问题...
我通过 sbaz 安装了 schema2src ,现在我想将 DTD(Apple 的 plist 架构)转换为 Scala 源。
$ schema2src
usage:
schema2src [flags] --module mname arg*
or
schema2src dtd arg*
or (experimental)
schema2src xsd arg* (this doesn't work at all yet)
where supported [flags] may be:
--verbose prints some debugging information
但是,如果我尝试给出任何参数,似乎找不到Scala:
$ schema2src --verbose
Exception in thread "main" java.lang.NoClassDefFoundError: scala/runtime/BoxesUtility
at schema2src.Main$.processArgs(Main.scala:56)
at schema2src.Main$.main(Main.scala:25)
at schema2src.Main.main(Main.scala)
Caused by: java.lang.ClassNotFoundException: scala.runtime.BoxesUtility
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 3 more
我的PATH
中有scala
...
任何建议?假设问题可以解决,这是正确的语法吗?
$ schema2src PropertyList-1.0.dtd
This perhaps more a Server Fault question...
I installed schema2src
via sbaz
and now I would like to convert a DTD (Apple's plist schema) to Scala source.
$ schema2src
usage:
schema2src [flags] --module mname arg*
or
schema2src dtd arg*
or (experimental)
schema2src xsd arg* (this doesn't work at all yet)
where supported [flags] may be:
--verbose prints some debugging information
However, if I try give any argument, it appears it can't find Scala:
$ schema2src --verbose
Exception in thread "main" java.lang.NoClassDefFoundError: scala/runtime/BoxesUtility
at schema2src.Main$.processArgs(Main.scala:56)
at schema2src.Main$.main(Main.scala:25)
at schema2src.Main.main(Main.scala)
Caused by: java.lang.ClassNotFoundException: scala.runtime.BoxesUtility
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 3 more
I have scala
in my PATH
...
Any suggestions? Assuming that problem can be fixed, is this the correct syntax?
$ schema2src PropertyList-1.0.dtd
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为现在是 http://scalaxb.org/
I think it is now http://scalaxb.org/