private static void InternalMain() { Console.WriteLine("this code is running inside JVM 1"); var x = new FileInfo(@"C:\util\aws-android-sdk-0.2.0\lib\aws-android-sdk-0.2.0-ec2.jar"); Console.WriteLine(x.FullName); var r = new JavaArchiveReflector(x); r.JavaArchiveResolve += name => { var xx = CLRProgram.JavaArchiveResolve(r.FileNameString, name); if (null == xx) { return(null); } return(new FileInfo(xx)); }; ToConsole(r); }
public static void Main(string[] args) { try { InternalMain(); } catch (csharp.ThrowableException u) { Console.WriteLine("error"); ((Throwable)(object)u).printStackTrace(); } CLRProgram.CLRMain(); }