How can I use the Scala program schema2src?

Posted by pr1001 on Stack Overflow See other posts from Stack Overflow or by pr1001
Published on 2010-04-22T00:42:36Z Indexed on 2010/04/22 4:13 UTC
Read the original article Hit count: 213

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about scala

Related posts about sbaz

  • How can I use the Scala program schema2src?

    as seen on Stack Overflow - Search for 'Stack Overflow'
    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… >>> More

  • Wake laptop when lid is opened?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    I have a SAMSUNG laptop, which by the experience in the last months, has been a great one. I am actually implementing some functionality to it, and since I noticed, I am able to wake up my laptop from sleep by just opening the lid on Windows 7, however, I need to press to power button to wake up in… >>> More

  • Actors in Scala.net

    as seen on Stack Overflow - Search for 'Stack Overflow'
    I have recently completed some study of erlang, and was intrigued by scala for its feature set and the ease of interpolating with java (and possibly .net) applications. I am finally studying actors and was wondering if there is an actor mechanism that currently works in .net. I have looked at the… >>> More