my dog learned polymorphism*
The moose likes Beginning Java and the fly likes how to start java program in separate cmd window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to start java program in separate cmd window " Watch "how to start java program in separate cmd window " New topic
Author

how to start java program in separate cmd window

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
i have global cmd window that is executing some applications for example
but when i sty to run java application that is in other cmd its start in the same window
and i like it to start in different cmd window , how can it be done ?

for example i have this global.cmd that looks like this :



the javaApp.cmd looks like this :




so i like that when calling to the javaApp.cmd it will open me separate window and not in the same global.cmd window
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953


will do the trick. However, the new cmd window will close when you app finish.
Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
hi thanks for the fast reply , its working
i know its not java related or maybe it is ...
as part of the global.cmd , i terminate all the applications
using XP taskkill command something like .
TASKKILL /F /IM myApp1.exe
TASKKILL /F /IM myApp2.exe
but now if i like to also terminate the java applications
when i do tasklist , im only getting :
java.exe 2796 Console 0 32,168 K
how can i give the java application some kind of ID so i could terminate it by name
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to start java program in separate cmd window
 
Similar Threads
how to set title on java app cmd window
Setting the classpath
Bat file to setup java enviroment.
another question about exec() to open a cmd window
how to capture in win cmd java program output