im trying to run a bat file and it dosent do anything. When i open the bat file manually by double clicking on it in Windows, it opens a cmd windod that runs a CLI. The bat file needs to run jar.
Here is my code:
@Override
public void changeToCli() {
try {
Process p = Runtime.getRuntime().exec("C:\\Users\\Gleb\\workspace1\\MVP\\CLI\\RunMe.bat");
} catch (Exception e) {
e.printStackTrace();
}
}