Hi all,
I'm new to this site and new to java programming.
I have a doubt.
Is it possible to run a jar file from a button click in swing.
Help required in this. If possible can you post the code please.
Thanks in advance.
Printable View
Hi all,
I'm new to this site and new to java programming.
I have a doubt.
Is it possible to run a jar file from a button click in swing.
Help required in this. If possible can you post the code please.
Thanks in advance.
Not sure what you are asking.Quote:
run a jar file from a button click in swing
You can run/execute a program from a java program by using the Process and Runtime classes. Create a command line to "run the jar file" and pass it to the methods of the above classes to execute it.
Have the button listener start a thread to do the above.
Swing has nothing to do with this problem.