I want to start some java executables from a java source fle.To be specific, at first I want to load 10 exes that have a listening socket each,then 20,that connect to the previous sockets and wait for socket connections, too,...etc.It is obvious that in order to start the second group of exes,i must be certain that all exes of thaefirst group are loaded and listen to connections correctly. The only method i have found in java to run external exes is Runtime.exec().However this method is very slow and takes a very long time to make them start,compared to executing them through windows.Adding sleep() between calls doesn't help,unfortunately. Is there a way to use a system call from a system independent platform as java?It would help me a lot. Or else, has anybody any idea on how to start a bunch of exes from a java source file very quickly? Thanks a lot
posted 13 years ago
If it is java classes then you may be able to execute it directly as ClassName.main(). You may have to do that in separate threads. Is there any reason why you should be running these java programs using a different Java VM? [ February 03, 2003: Message edited by: Hari Gangadharan ]
<B>Hari Gangadharan</B><BR>Unix is user friendly..<BR>but it chooses to whom it is friendly with!