Skip to content

Instantly share code, notes, and snippets.

@emlautarom1
Created June 1, 2021 15:20
Show Gist options
  • Save emlautarom1/ab2e73769d48ccdd42cd78f84d77e8ba to your computer and use it in GitHub Desktop.
Save emlautarom1/ab2e73769d48ccdd42cd78f84d77e8ba to your computer and use it in GitHub Desktop.
SFX Batch Java Launcher
@echo off
Set ExecutablePath=%~dp0
For %%A in ("%sfxname%") do (
Set AssetsPath=%%~dpA
)
cd %AssetsPath%
echo AssetsPath: %AssetsPath%
echo ExecutablePath: %ExecutablePath%
%ExecutablePath%jre\bin\java.exe -Dspring.config.location=%ExecutablePath%application.yml -Dlogging.config=%ExecutablePath%logback-spring.xml -jar %ExecutablePath%application.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment