-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile.bat
More file actions
42 lines (35 loc) · 923 Bytes
/
compile.bat
File metadata and controls
42 lines (35 loc) · 923 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
REM Compile all Java source files for the Remote Classroom Polling System
echo ========================================
echo Compiling Remote Classroom Polling System
echo ========================================
echo.
REM Create output directory
if not exist "out" mkdir out
echo Compiling server classes...
javac -d out src\server\*.java
if %ERRORLEVEL% NEQ 0 (
echo.
echo [ERROR] Server compilation failed!
pause
exit /b 1
)
echo Compiling client classes...
javac -d out src\client\*.java
if %ERRORLEVEL% NEQ 0 (
echo.
echo [ERROR] Client compilation failed!
pause
exit /b 1
)
echo.
echo ========================================
echo Compilation successful!
echo ========================================
echo.
echo Next steps:
echo 1. Run server: run-server.bat
echo 2. Run clients: run-client.bat [name]
echo 3. Open dashboard: http://localhost:8090/
echo.
pause