Reputation: 301
I am not sure if its possible to create a duplicate session on Application.
I have an application developed using Java Swing, which will help to copy contents to the clipboard. I am currently using it as Exe file (converted Jar using Launch4j).
My Concern, I have to add a button or an option that will help me to open a duplicate session of the application on the same machine, like having two applications open at the same time. Is that possible?
Please suggest.
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
String params = null;
try {
Runtime.getRuntime().exec(params);
} catch (IOException ex) {
Logger.getLogger(Handoff.class.getName()).log(Level.SEVERE, null, ex);
}
}
Upvotes: 0
Views: 149
Reputation: 1903
you can always launch another executable from a java program using Runtime.getRuntime().exec(params)
or other APIs, which you can use to run your binary again.
Upvotes: 3