From: Ben K. <be...@no...> - 2010-09-19 16:49:47
|
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 |