From: Sascha H. <sa...@gm...> - 2009-08-27 06:08:10
|
Hi Juergen! We are in the process of deprecating an dold infrastructure by setting up a new one. A while ago we made this new one the default one, even though it doesn't support all possible cross-compilation combinations. While the old infrastructure was possible to cross-compile Java bytecode to CLR files, coverage wasn't that good. We will re-introduce this functionality soon, but don't expect it to be very usable. There is almost no Java compatibility library for the CLR (See Compat On Thu, Aug 27, 2009 at 2:55 AM, Juergen Schmerder < jue...@sa...> wrote: > Hi > > Is the current (synchronized with SVN today) version of XMLVM able to > cross-compile a Java classfile to .NET byte code? > > Basically, xmlvm seems to work fine - when I do (on the usual > HelloWorld.java that does a System.out.println in main): > > >> xmlvm --in=HelloWorld.class --target=xmlvm > > I get: > > [08/26/09 17:48:18.777] DEBUG: Instantiated: > org.xmlvm.proc.in.ClassInputProcess > [08/26/09 17:48:18.779] DEBUG: Instantiated: > org.xmlvm.proc.in.ClassInputProcess for "HelloWorld.class" > [08/26/09 17:48:18.781] DEBUG: Instantiated: > org.xmlvm.proc.out.XmlvmOutputProcess > [08/26/09 17:48:18.782] DEBUG: Adding preprocess > org.xmlvm.proc.in.ClassInputProcess to process > org.xmlvm.proc.out.XmlvmOutputProcess > [08/26/09 17:48:18.783] DEBUG: ClassInputProcess.process(): > HelloWorld.class > [08/26/09 17:48:18.933] DEBUG: Processing finished successfully. > [08/26/09 17:48:18.934] DEBUG: Writing file: ./HelloWorld.xmlvm > [08/26/09 17:48:18.935] DEBUG: Files written successfully. > > Looks fine! Cross-compilation to JavaScript also worked. But when I try > > >> xmlvm --in=HelloWorld.class --target=clr > > I get > > [08/26/09 17:53:09.992] DEBUG: Instantiated: > org.xmlvm.proc.in.ClassInputProcess > [08/26/09 17:53:09.993] DEBUG: Instantiated: > org.xmlvm.proc.in.ClassInputProcess for "HelloWorld.class" > [08/26/09 17:53:09.993] ERROR: Could not create OutputProcess for target > 'CLR'. > 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.XmlvmProcessor.filterNotYetProcessedProcessed(XmlvmProcessor. > java:196) > at > > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline0(XmlvmProcessor.java:1 > 44) > at > > org.xmlvm.proc.XmlvmProcessor.buildProcessingPipeline(XmlvmProcessor.java:13 > 9) > at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:101) > at org.xmlvm.proc.NewMain.main(NewMain.java:55) > ... 6 more > > > Same for > >> xmlvm --in=HelloWorld.xmlvm --target=clr > or > >> xmlvm --in=HelloWorld.class --target=exe > > > Am I missing anything or is this not supposed to work? > > Best regards, Juergen > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |