Commits

camlspotter  committed 1c85271 Draft

camljava_Init now does not create JVM if called from Java main()

  • Participants
  • Parent commits 6dae832
  • Branches android

Comments (0)

Files changed (1)

File camljava-0.3/lib/jnistubs.c

   char * classpath;
   char * setclasspath = "-Djava.class.path=";
 
+  if( jenv ){ return Val_unit; }
+
   /* Set the class path */
   classpath = 
     stat_alloc(strlen(setclasspath) + string_length(vclasspath) + 1);