Results 1 to 3 of 3
- 02-06-2011, 06:49 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
run multiple jar files by one click
Hi everyone,
Now I have 2 jar files, parser.jar and post.jar. Each file can run separately.
I want to run them by one click.
For example, combine them into one jar file (I am not sure if it's possible, because there seems like to be 2 main classes).
Or maybe some scripts?
Any suggestion is welcome!
-
Please read and reply to a private message that I have sent you. Thank you.
- 02-06-2011, 07:20 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Yes, you could write a script in whatever form your OS requires and run the two programs either one after the other or as two separate processes.
Or you could write another Java class whose main method calls the main methods of the Main-Classes of the two jars - again, either one after the other, or in two separate threads.
Exactly what will happen in any of these four senarios depends, of course, on what exactly the two programs do.
If the two jar files both declare a class with the same name I don't know what will happen. Nothing good, I imagine.
Similar Threads
-
Editable multiple line ToolTip on mouse right click
By smitharavi in forum AWT / SwingReplies: 1Last Post: 12-18-2010, 10:34 AM -
Handling multiple WAV files and saving them into ONE
By phil128 in forum Advanced JavaReplies: 2Last Post: 12-11-2010, 02:31 PM -
Compiling Multiple Files
By Chasingxsuns in forum New To JavaReplies: 4Last Post: 02-12-2010, 01:22 PM -
Project containing multiple source files
By mr smiley in forum EclipseReplies: 0Last Post: 04-25-2009, 10:31 PM -
multiple class files
By nemesys571 in forum EclipseReplies: 0Last Post: 06-26-2008, 01:58 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks