http://www.xmlvm.org/ is the web site for XMLVM. It's basically a cross-compiler for interpreted languages, but it can do a bunch of other stuff too - like create an iPhone app from a Java application, or convert Java apps to .NET executables, or even .NET to Python. Cool, huh?
Acquiring it is a bit of a pain: You have to make sure you have the Java JDK 6 or newer installed, along with Xcode and the corresponding command-line tools. Once those things are installed, do this in Terminal:
It spits out a ton of warnings about resource files, then this:
I tried Googling this error message, and searching the mailing lists. No dice.
Acquiring it is a bit of a pain: You have to make sure you have the Java JDK 6 or newer installed, along with Xcode and the corresponding command-line tools. Once those things are installed, do this in Terminal:
- cd to the place you want the XMLVM project to live
- Issue this command to get or update XMLVM: svn co https://xmlvm.svn.sourceforge.net/svnroot/xmlvm/trunk/xmlvm
- To build xmlvm, first cd xmlvm (to go to the xmlvm subdirectory the previous command created) then issue this command to perform the build: ant
- Then, build the demos: ant demos
- Finally, issue this command to install what you've just built: sudo ant install
Code:
xmlvm --in=/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/LaserTank/bin --out=/Users/miniwrld/Development/IDEs/Eclipse/Python/LaserTank --resource=/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/LaserTank/bin/com/puttysoftware/lasertank/resources/ --deps=/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/CommonDialogs/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/ErrorLogger/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/Help/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/Images/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/LLDS/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/Media/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/OSVersionCheck/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/PicturePicker/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/Platform/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/RandomRange/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/ScoreManager/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/Updater/bin,/Users/miniwrld/Development/IDEs/Eclipse/Java/7/Games/LaserTank/XIO/bin --target=posix
Code:
[11/18/12 16:31:26.797] ERROR: Red Class java.awt.event.ActionListener referenced as interface
References: {com.puttysoftware.lasertank.AboutDialog$EventHandler=SELF, java.lang.Object=SUPER_CLASS}
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.simontuffs.onejar.Boot.run(Boot.java:306)
at com.simontuffs.onejar.Boot.main(Boot.java:159)
Caused by: java.lang.RuntimeException: Build contains errors. See above. Failed.
at org.xmlvm.proc.out.DEXmlvmOutputProcess.addReference(DEXmlvmOutputProcess.java:541)
at org.xmlvm.proc.out.DEXmlvmOutputProcess.processClass(DEXmlvmOutputProcess.java:753)
at org.xmlvm.proc.out.DEXmlvmOutputProcess.process(DEXmlvmOutputProcess.java:650)
at org.xmlvm.proc.out.DEXmlvmOutputProcess.generateDEXmlvmFile(DEXmlvmOutputProcess.java:423)
at org.xmlvm.proc.out.DEXmlvmOutputProcess.generateDEXmlvmFile(DEXmlvmOutputProcess.java:373)
at org.xmlvm.proc.out.DEXmlvmOutputProcess.processPhase1(DEXmlvmOutputProcess.java:345)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:209)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase1(XmlvmProcessImpl.java:206)
at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:157)
at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)
at org.xmlvm.Main.main(Main.java:53)
... 6 more