From: Sascha H. <sa...@xm...> - 2011-10-14 20:41:36
|
I silently introduced a new parameter recently that you can try out: Call xmlvm with "--libraries=yourlib.jar". This should make XMLVM to pick it up. Now depending on what that library does, you might run into APIs that are not yet fully supported. So please report back when you get errors with the --libraries argument. // Sascha On Fri, Oct 14, 2011 at 10:09 PM, Daniel Naus <dan...@gm...> wrote: > Hello, > > I am trying to cross-compile a simple java application making use of an > external java jar library (antlr) to iphone and getting null pointer > exception in the process: > > [10/14/11 14:24:47.677] ERROR: Couldn't create node for <..3rd > party jar library class here...> > 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.util.ObjectHierarchyHelper.getXmlvmResource(ObjectHierarchyHelper.java:182) > at > org.xmlvm.util.ObjectHierarchyHelper.<init>(ObjectHierarchyHelper.java:112) > at > org.xmlvm.proc.out.VtableOutputProcess.processPhase2(VtableOutputProcess.java:108) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at > org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137) > at org.xmlvm.Main.main(Main.java:55) > > I am a newbie with xmlvm and was not able to figure out how to > properly include jars in the cross compile process (simple hello world > demo works fine) - would anyone please have a suggestion as to how to > do this? > > Thanks a lot, > Daniel > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |