Spawn("java") throw Errno::ENOENT exception

hi list,

spawn(“java”) doesn’t work well.

os: windows xp
jruby: 1.6.3 (1.9.2) /1.6.4 (1.9.2)

I confirmed that java.exe was in the environment variable PATH.

thanks,
-Oscar