-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
42 lines (34 loc) · 1022 Bytes
/
start.bat
File metadata and controls
42 lines (34 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
setlocal enabledelayedexpansion
title Spring Boot Application
echo ========================================
echo Spring Boot Application Start Script
echo ========================================
echo.
if not exist "start\target\start-1.0-SNAPSHOT.jar" (
echo ERROR: JAR file not found!
echo Please run: mvn clean package first
echo.
pause
exit /b 1
)
if not exist "start\target\lib" (
echo ERROR: Dependency directory not found!
echo Please run: mvn clean package first
echo.
pause
exit /b 1
)
set JAVA_OPTS=-Xmx512m -Xms256m
REM Build classpath using wildcard - this is the key fix
set CLASSPATH=start\target\start-1.0-SNAPSHOT.jar;start\target\lib\*
echo Starting Spring Boot Application...
echo JAR File: start\target\start-1.0-SNAPSHOT.jar
echo Dependencies: start\target\lib\
echo JVM Options: %JAVA_OPTS%
echo.
REM Start application using the classpath
java %JAVA_OPTS% -cp "%CLASSPATH%" com.wsf.StartApplication %*
echo.
echo Application stopped.
pause