Java and START in Batch
Posted: 04 Aug 2012 10:06
Hello all!
I'm trying to start a jar file using the java command, I'm planning on making an exe file that runs and runs a batch file that THEN runs a batch file thats inside the jarfile's folder.
Batch file 1:
Batch file 2:
It's extremely simple, but yet, it doesn't work. BF2 works when I double click it.
It throws.
Why? And can anyone help?
I'm trying to start a jar file using the java command, I'm planning on making an exe file that runs and runs a batch file that THEN runs a batch file thats inside the jarfile's folder.
Batch file 1:
Code: Select all
@echo off
cls
START /B C:\Users\BillyV\AppData\Roaming\.techniclauncher\RunTekkit.bat
EXIT
Batch file 2:
Code: Select all
@ECHO OFF
java -Xmx1024M -Xms1024M -jar technic-launcher.jar
EXIT
It's extremely simple, but yet, it doesn't work. BF2 works when I double click it.
It throws
Code: Select all
Unable to access jarfile technic-launcher.jar
Why? And can anyone help?