On FreeBSD 4.1 using stock JDK 1.1.8 a call to JNI_CreateJavaVM() somehow hangs on a stdin-read. Pressing return or ctrl-D will make it go past that point. Am trying to compile/run using the Main.test and invoke.c example code from the manual.
Dirk-Willem van Gulik This is purely a green_treads issue. You are simply not allowed to work with any file descriptors prior to the CreateJavaVM call. A work around is to issue a simple fclose(stdin).