Skip to content

Commit

Permalink
Use '%~dp0' to get the correct path to the launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
PenghaiZhang committed Nov 27, 2019
1 parent 8758530 commit 03e46fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions launcher-scripts/Windows-launcher.bat
Original file line number Diff line number Diff line change
@@ -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=

0 comments on commit 03e46fd

Please sign in to comment.