From: Ben K. <be...@no...> - 2010-09-21 04:08:08
|
> > 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 :( Looks like that was what it was. I updated the manifest file and made the path relative (and fixing /) and it appears to work. Doesn't run yet, but I'm closer: Exception in thread "main" java.lang.Error: Unresolved compilation problem: at org.xmlvm.iphone.UIApplication.main(UIApplication.java:117) at org.xmlvm.demo.ifireworks.Main.main(Main.java:56) Something's gone wrong there anyway. I notice that the Eclipse launch file doesn't actually use the ant-built jar files, so I might just try compiling them myself. Thanks for the pointer. Ben |