Dear All,
I had two java server prgs namely server1 and server2, which will be running on two different ports. Now i want to write a batch file, which runs these two servers at the same time. Can any one give the solution for this problem? I tried by writing the batch code as follows..
java server1
java server2
when i execute the above batch file, server1 got started, but the server2 is waiting for the server1 to be stopped, which should not happen in my case.
kindly give the solution for the above stated problem...
Regards,
-
How to write a batch file to run multiple java programs.... (2 messages)
- Posted by: Pardha Saradhi
- Posted on: May 05 2003 02:56 EDT
Threaded Messages (2)
- How to write a batch file to run multiple java programs.... by Siddhartha Maharana on May 05 2003 08:28 EDT
- Re: How to write a batch file to run multiple java programs.... by Alan Choy on May 05 2003 10:46 EDT
-
How to write a batch file to run multiple java programs....[ Go to top ]
- Posted by: Siddhartha Maharana
- Posted on: May 05 2003 08:28 EDT
- in response to Pardha Saradhi
You can use following code
start java server1
start java server2
This will start the java applications in 2 different shell.
Regards
-Siddhartha
> Dear All,
>
> I had two java server prgs namely server1 and server2, which will be running on two different ports. Now i want to write a batch file, which runs these two servers at the same time. Can any one give the solution for this problem? I tried by writing the batch code as follows..
> java server1
> java server2
> when i execute the above batch file, server1 got started, but the server2 is waiting for the server1 to be stopped, which should not happen in my case.
>
> kindly give the solution for the above stated problem...
>
> Regards, -
Re: How to write a batch file to run multiple java programs....[ Go to top ]
- Posted by: Alan Choy
- Posted on: May 05 2003 10:46 EDT
- in response to Siddhartha Maharana
I believe it is better to run by using javaw instead of java in batch mode.