From: Markus N. <mar...@gm...> - 2011-03-03 06:36:26
|
Hi, xmlvm is cross compiling the .class bytecode files and not the .java source files. So --in should point to the directory containing them. Does src/java contain them in your case? Markus On Wed, Mar 2, 2011 at 6:01 PM, Wenjing Yan <wen...@gm...> wrote: > Hello, > > I tried to port a bundle of Java classes using XMLVM with "--target=posix". > The command I used is > java -Xmx1G -jar <XMLVM_HOME>/dist/xmlvm.jar --in=src/java > --out=src/objc --target=posix --app-name=iPhoneApp > > However I'v got an exception as follows: > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.simontuffs.onejar.Boot.run(Boot.java:306) > at com.simontuffs.onejar.Boot.main(Boot.java:159) > Caused by: java.lang.NullPointerException > at > org.xmlvm.proc.out.VtableOutputProcess.addAllBaseInterfaceVtables(VtableOutputProcess.java:323) > at > org.xmlvm.proc.out.VtableOutputProcess.computeVtable(VtableOutputProcess.java:275) > at > org.xmlvm.proc.out.VtableOutputProcess.getAllImplementedInterfaces(VtableOutputProcess.java:351) > at > org.xmlvm.proc.out.VtableOutputProcess.computeVtable(VtableOutputProcess.java:287) > at > org.xmlvm.proc.out.VtableOutputProcess.computeVtable(VtableOutputProcess.java:254) > at > org.xmlvm.proc.out.VtableOutputProcess.computeVtables(VtableOutputProcess.java:231) > at > org.xmlvm.proc.out.VtableOutputProcess.process(VtableOutputProcess.java:216) > at org.xmlvm.proc.XmlvmProcessImpl.preprocess(XmlvmProcessImpl.java:212) > at org.xmlvm.proc.out.COutputProcess.process(COutputProcess.java:79) > at org.xmlvm.proc.XmlvmProcessImpl.preprocess(XmlvmProcessImpl.java:212) > at > org.xmlvm.proc.out.AugmentedCOutputProcess.process(AugmentedCOutputProcess.java:72) > at org.xmlvm.proc.XmlvmProcessImpl.preprocess(XmlvmProcessImpl.java:212) > at > org.xmlvm.proc.out.PosixOutputProcess.process(PosixOutputProcess.java:60) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:139) > at org.xmlvm.Main.main(Main.java:54) > ... 6 more > > Could someone kindly advise me what's the problem here? Thank you. > > -- > *Best Regards > Wenjing Yan* > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |