Created
April 17, 2013 13:16
-
-
Save mmazer/5404215 to your computer and use it in GitHub Desktop.
Java - Windows batch file wrapper to start apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set TOP=%~dp0.. | |
set LIB=%TOP%\lib | |
set MAIN= | |
for /R %LIB% %%a in (*.jar) do call :AddToPath %%a | |
set CLASSPATH=%CLASSPATH%;%LIB%\classes | |
java -classpath %CLASSPATH% %MAIN% %* | |
goto Done | |
:AddToPath | |
set CLASSPATH=%1;%CLASSPATH% | |
goto :EOF | |
:Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment