Managing Sytem Threads In JAVA

0 views
Skip to first unread message

Varun Deshpande

unread,
Sep 4, 2009, 2:22:47 AM9/4/09
to mae...@googlegroups.com, Java...@googlegroups.com
Dear All
        I am invoking "sqlloder " command from java programmer. we i called
                       Runtime run = Runtime.getRuntime();
                       Process pp=run.exec("cmd /c start sqlldr");
               At that point a new thread is created which run cmd command. & excecution of current programmer is going on.

My aim is to stop further execution of programmer until the thread which runs sqlloader is running.

--
Thanks
Varun Deshpande

When You wish upon a star
Makes no different who you are
Anything your heart desire
will come true


Umesh Adtani

unread,
Sep 7, 2009, 9:39:38 PM9/7/09
to java...@googlegroups.com
How about removing the "start" from your command - i.e., run.exec(new String[]{"cmd","/c","sqlldr"}.
Reply all
Reply to author
Forward
0 new messages