The development of a Java VM for .NET
C:\>mono --noinline --share-code c:\ikvm\bin\ikvm.exe hello** Warning **: cannot find C:\cygwin\home\lalo\go-mono\install\etc\mono\machine.configTrying to load app config file...Hello World
The latest ikvm binaries together with Mono 0.21 now run Hello World!
Many thanks to everyone at Ximian, the Mono contributors and especially Zoltan Varga!
The --noinline and --share-code options are needed to work around a bug in the current Mono JIT that cause it to call the class constructors to eagerly.
I've updated the source and binaries snapshots.
os.version: 5.1.2600.0java.vm.version: 1.0.1157.20889Grin. Say what...
gnu.classpath.home.url: ikvmres:classpath, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null:libUgh. Much to learn about this new beast.
BTW the following just gives:Exception in thread "main" java.lang.NullPointerException at Throw.main(<unknown>)
public class Throw { public static void main(String[] args) { try { m1(); } catch(Exception e) { e.printStackTrace(); } } static void m1() throws Exception { try { m2(); } catch(Exception e) { e.printStackTrace(); throw new Exception(e.toString()); } } static void m2() throws Exception { try { throw new Exception("Honk! Honk!"); } catch(Exception e) { e.printStackTrace(); throw new Exception(e.toString()); } }}
Must get sleep now...
On .NET it runs fine though.
Remember Me
I apologize for the lameness of this, but the comment spam was driving me nuts. In order to be able to post a comment, you need to answer a simple question. Hopefully this question is easy enough not to annoy serious commenters, but hard enough to keep the spammers away.
Anti-Spam Question: What method on java.lang.System returns an object's original hashcode (i.e. the one that would be returned by java.lang.Object.hashCode() if it wasn't overridden)? (case is significant)