Search:

Type: Posts; User: Hawke

Search: Search took 0.10 seconds.

  1. Re: How to execute an executable JAR from within Java program?

    Thanks this worked for me:


    ProcessBuilder pb = new ProcessBuilder("java", "-jar", jarname);
    pb.directory(new File(jarname).getParentFile());

    try{

    pb.start();
  2. How to execute an executable JAR from within Java program?

    Don't know if this would belong in I/O, sorry if it doesn't.

    I have a game launcher program and I need it to launch my game after patching when I click on a button. I want to be able to execute...
Results 1 to 2 of 2