Ruby_setenv and java process

Hi!

Im currently executing a rubyscript in windows through a java process
which is giving me this failure:

`[]=’: Invalid argument - ruby_setenv(PATH) (Errno::EINVAL)

Google told me it had something do do with java processes/subprocesses
and ruby_setenv without leaving any clue of how to fix or workaround it(
atleast I did not find anything)

Anyone stumbled upon this problem and solved it?