From 03e46fd2737c694a72deeed6cae2583a9afdb3a8 Mon Sep 17 00:00:00 2001 From: Penghai Date: Wed, 27 Nov 2019 16:15:09 +1100 Subject: [PATCH] Use '%~dp0' to get the correct path to the launcher --- launcher-scripts/Windows-launcher.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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