If you want to run a .jar java file Try This :-
public static void main(String arg[]) { try { Process p = Runtime.getRuntime().exec(" java -jar resources/progress.jar"); // Specify Your .jar path } catch (IOException ex) { ex.printStackTrace(); Logger.getLogger(OpenJar.class.getName()).log(Level.SEVERE, null, ex); } }
No comments:
Post a Comment