This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
spawining an executable hangs
Posted by Srini on July 13, 2000 at 3:17 PM
Hi, I tried to spawn an executable (e.g. sqlplus.exe) from java and the program hangs in DOS prompt. I could see "sqlplus.exe" in the windows task manager, but I dont know why it doesnt "exit" after completing the task (sqlplus). I tried process = Runtime.getRuntime().exec("cmd.exe /c cmd.exe /c " + "sqlplus acta4x/acta4x@dendrobium @create_ora.sql); the create_ora.sql has the following cmd ------------- Create table VBUK ( SUPKZ Varchar2(1), VBELN Varchar2(10)); exit; ------------------ Note: If I run the same program from the "visual cafe", it works Can any one help me? Thanks in advance Srini
Replies:
|