Beispiel #1
0
 public static JavaRuntime GetJavaRuntime()
 {
     if (instance == null)
     {
         instance = new JavaRuntime();
     }
     return(instance);
 }
Beispiel #2
0
        public static object NewInstance(string className)
        {
            Type type = JavaRuntime.ClassforName(className);

            return(Activator.CreateInstance(type));
        }