Implements the backing support for global::ikvm.runtime.Launcher.run(Type, string[], string, global::java.util.Properties).
25 {
26#if FIRST_PASS
27 throw new NotImplementedException();
28#else
29 if (args is null)
30 throw new ArgumentNullException(nameof(args));
31
32
33
34 if (main != null && main.Assembly.IsDynamic == false)
36
37
38 var p = new Dictionary<string, string>();
39 if (properties != null)
40 foreach (global::java.util.Map.Entry entry in (IEnumerable)properties.entrySet())
41 p.Add((string)entry.getKey(), (string)entry.getValue());
42
45 ((global::java.lang.Class)main)?.getName(),
46 jar: false,
47 args,
48 jvmArgPrefix,
49 p);
50#endif
51 }
IKVM.Reflection.Assembly Assembly
Main state of the running JVM.
Utility for launching a Java class from a main entry point. Parses JVM command line options,...
static int Run(Assembly assembly, string main, bool jar, string[] args, string rarg, IDictionary< string, string > properties)
Services as the managed entry point jump for a Java executable.
RuntimeAssemblyClassLoader FromAssembly(Assembly assembly)
Obtains the RuntimeAssemblyClassLoader for the given Assembly. This method should not be used with dy...
RuntimeAssemblyClassLoaderFactory AssemblyClassLoaderFactory
Gets the RuntimeAssemblyClassLoaderFactory associated with this instance of the runtime.
RuntimeClassLoaderFactory ClassLoaderFactory
Gets the RuntimeClassLoaderFactory associated with this instance of the runtime.