I have tried to execute (in Java) the process given by the following command line:
java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n -cp . Simple
The process is correctly launched if Runtime.exec (String []) method is used.
However, if I try to pass some environment variables and thus I use Runtime.exec (String [], String []) method, then the process fails with this report:
FATAL ERROR in native method: No transport initialized
err:: No such file or directory
Error [2] in socket() call!
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1
It seems that there are problems to find needed libraries in the second case. I emphasize, that my environmetal settings were the same in both cases. The only difference is in used exec method.
The problem can be reproduced using the attached files. ExecTest calls Runtime.exec with one paramether if no arguments are passed to it, otherwise it calls Runtime.exec with two parameters.
Note: The problem can be reproduced on JDK1.4, build b62 as well.
java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n -cp . Simple
The process is correctly launched if Runtime.exec (String []) method is used.
However, if I try to pass some environment variables and thus I use Runtime.exec (String [], String []) method, then the process fails with this report:
FATAL ERROR in native method: No transport initialized
err:: No such file or directory
Error [2] in socket() call!
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1
It seems that there are problems to find needed libraries in the second case. I emphasize, that my environmetal settings were the same in both cases. The only difference is in used exec method.
The problem can be reproduced using the attached files. ExecTest calls Runtime.exec with one paramether if no arguments are passed to it, otherwise it calls Runtime.exec with two parameters.
Note: The problem can be reproduced on JDK1.4, build b62 as well.
- relates to
-
JDK-4522770 Reg-test JITDebug.java Failing
-
- Closed
-
-
JDK-4742013 Regtest-test com/sun/jdi/JITDebug.sh test fails on Windows 98
-
- Closed
-