Hi,

I have a similar problem here. I use the Invocation API with native
threads, definitely call JNI_CreateJavaVM with a correct classpath, but
JNI_CreateJavaVM hangs for about 30 sec, before it stops with:

  Can't find class java.lang.System

Difficult to say more, it happens only with my large program, simple
example programs (like invoce.c from tha Java tutorial) work :-(

If someone can interpret it, I could send him a complete output from
strace, but the main output while JNI_CreateJavaVM hangs is (many times
repeated): 


  open("/proc/937/stat", O_RDONLY)        = 8
  fstat(8, {st_mode=0, st_size=0, ...})   = 0
  mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
  0x4000d000
  read(8, "937 (example) T 936 934 832 769 "..., 1024) = 190
  read(8, "", 1024)                       = 0
  close(8)                                = 0
  munmap(0x4000d000, 4096)                = 0
  open("/proc/935/stat", O_RDONLY)        = 8
  fstat(8, {st_mode=0, st_size=0, ...})   = 0
  mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
  0x4000d000
  read(8, "935 (example) R 934 934 832 769 "..., 1024) = 198
  read(8, "", 1024)                       = 0
  close(8)                                = 0
  munmap(0x4000d000, 4096)                = 0
  gettimeofday({920232779, 618017}, NULL) = 0
  gettimeofday({920232779, 657611}, NULL) = 0
  gettimeofday({920232779, 668469}, NULL) = 0
  gettimeofday({920232779, 684209}, NULL) = 0
  gettimeofday({920232779, 684496}, NULL) = 0
  gettimeofday({920232779, 684742}, NULL) = 0
  kill(937, SIGCONT)                      = 0
  kill(937, SIGSTOP)                      = 0


"example" is the name of my large program.

See you

- Markus



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to