From: Panayotis K. <pan...@pa...> - 2010-09-20 08:47:37
|
On 19 Σεπ 2010, at 7:33 μ.μ., Ben Kirk wrote: > Hi, > > This is probably the most inane question you've been asked, but how do > you run the example apps purely with java? > > I was able to compile XMLVM with ant, and run the examples from within > Eclipse, I can even run xmlvm (using java -jar xmlvm) perfectly fine, > but when running the examples I get the following error: > > D:\Users\Ben\workspace\xmlvm\dist\demo\iphone\ifireworks\java>java -jar > ifireworks.jar > Exception in thread "main" java.lang.NoClassDefFoundError: > org/xmlvm/demo/ifireworks/Main > Caused by: java.lang.ClassNotFoundException: org.xmlvm.demo.ifireworks.Main > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: org.xmlvm.demo.ifireworks.Main. Program > will exit. > > I couldn't really find anything in the manual (and it just says to use > java -jar). I'm obviously missing something fundamental. > > I'd be thankful for any help. > > Regards, > Ben I suspect it has to do with windows path separator "\" Unfortunately I can't help you more than that :( |