Using a user-mode-linux kernel as a test-bed, I'm trying to start a JavaVM
as the first process instead of init. I appears to be hanging on
JNI_CreateJavaVM. I'm not sure what initial conditions need to be set, so
I've played around a bit unsuccessfully. I have a program, though, that
duplicates this behavior from the command-line. It comes down to this: if I
create a VM from a process spawned directly from a shell, it works. If my
program forks then calls JNI_CreateJavaVM, it hangs. The attached program
will duplicate this. Run without command-line args to fork and with
command-line args for no fork.

any ideas? I've tried this with every linux JVM 1.2.2 and newer (including
sun, bd, and ibm and 1.3.0 versions).

thanks,

stewart

jvmtest.c

Reply via email to