public static void Main(string[] args) { // jsc needs to see args to make Main into main for javac.. var filePath0 = @"C:\util\android-sdk_r08-windows\android-sdk-windows\platforms\android-8\android.jar"; var x = new JavaArchiveReflector(new FileInfo(filePath0)); System.Console.WriteLine("done"); StringAction ListMethods = MethodName => { try { System.Console.WriteLine(); System.Console.WriteLine(MethodName); // unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown var c = java.lang.Class.forName(MethodName); foreach (var item in c.getMethods()) { System.Console.WriteLine("method: " + item.getName()); } } catch { System.Console.WriteLine("error!"); } }; //ListMethods("java.lang.Class"); System.Console.WriteLine("jvm"); var SwitchVM = true; while (SwitchVM) { SwitchVM = false; CLRProgram.XML = new XElement("hello", "world"); CLRProgram.CLRMain( ListMethods: ListMethods, SwitchVM: () => SwitchVM = true, jar: x ); //if (SwitchVM) //{ // SwitchVM = false; // UltraProgram.UltraMain( // ListMethods: ListMethods, // SwitchVM: () => SwitchVM = true // ); //} } }