diff --git a/launcher-scripts/Windows-launcher.bat b/launcher-scripts/Windows-launcher.bat index c23546d..5eeecae 100755 --- a/launcher-scripts/Windows-launcher.bat +++ b/launcher-scripts/Windows-launcher.bat @@ -1,6 +1,7 @@ @echo off set OLD_JAVA_HOME=%JAVA_HOME% -set JAVA_HOME=%cd%\jdk8u212-b03-jre -start "Admin console launcher" /D "%cd%\libs" "%JAVA_HOME%\bin\javaw" -DLAUNCHER_JAVA_PATH="%JAVA_HOME%\bin\java" -jar admin.jar +set BAT_DIRECTORY=%~dp0 +set JAVA_HOME=%BAT_DIRECTORY%jdk8u212-b03-jre +start "Admin console launcher" /D "%BAT_DIRECTORY%\libs" "%JAVA_HOME%\bin\javaw" -DLAUNCHER_JAVA_PATH="%JAVA_HOME%\bin\java" -jar admin.jar set JAVA_HOME=%OLD_JAVA_HOME% set OLD_JAVA_HOME= \ No newline at end of file