How to launch two java program in the same time through another one? -
i'm beginner , try code simple java programs , here have 2 java programs.
the first program selecting recent files folder.
the second program concatenating these recents files.
what want create third java program -will launch first program. -then wait 10s -launch second java program.
i want keep separately first , second program.
because want use them further application.
is possible? have use process method if want launch notepad.exe through java? or else?
thank you
there nothing special main method. can call directly third program if like.
public static void main(string[] args) throws exception { program1.main(args); thread.sleep(10000); program2.main(args); }
Comments
Post a Comment