Created
May 10, 2015 17:05
-
-
Save junlapong/b4ce98bc56614bd21eae to your computer and use it in GitHub Desktop.
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 | |
| cls | |
| pushd | |
| setlocal EnableDelayedExpansion | |
| %~d0 | |
| cd %~dp0 | |
| :: =========================================================================== | |
| SET JAVA_PATH=D:\Java\jdk8\jre | |
| SET JAVA_OPTS=-Xms256M -Xmx1024M | |
| SET JAVA_EXEC="%JAVA_PATH%\bin\java.exe" %JAVA_OPTS% | |
| :: =========================================================================== | |
| SET CLASSPATH=". | |
| for /R ./lib %%F in (*.jar) do ( | |
| SET CLASSPATH=!CLASSPATH!;%%F | |
| ) | |
| SET CLASSPATH=!CLASSPATH!" | |
| SET CP=!CLASSPATH! | |
| :: =========================================================================== | |
| echo JAVA : %JAVA_PATH% | |
| ::echo CP : %CP% | |
| :: =========================================================================== | |
| %JAVA_EXEC% -cp %CP% com.company.module.AppName | |
| :: =========================================================================== | |
| endlocal | |
| popd | |
| echo EXIT CODE: %ERRORLEVEL% | |
| exit /B %ERRORLEVEL% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment