The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000

Advertisement

Advertisement
where you can ask and answer Java programming questions.">
artima.com - a resource for Java and Jini developers
Artima | Search | Java | Design | JVM | Jini | Books | Seminars | Subscribe 


Java Answers Forum
July 2000

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:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us