How can I use the Scala schema2src program?

It might be more of a server problem ...

I installed schema2src

via sbaz

, and now I would like to convert the DTD schema (Apple 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 to give any argument, it seems that it cannot 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 the problem can be fixed, is this the correct syntax?

$ schema2src PropertyList-1.0.dtd

      

+2


a source to share


1 answer


I think now http://scalaxb.org/



+2


a source







All Articles