-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-windows.bat
More file actions
28 lines (25 loc) · 746 Bytes
/
run-windows.bat
File metadata and controls
28 lines (25 loc) · 746 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
@echo off
echo Creating output directory...
if not exist out mkdir out
echo Ensuring JSON directories exist...
if not exist json mkdir json
echo Checking template files...
if exist usersExample.json (
echo Template user file found.
) else (
echo ERROR: usersExample.json not found!
pause
exit /b 1
)
if exist coursesExample.json (
echo Template course file found.
) else (
echo ERROR: coursesExample.json not found!
pause
exit /b 1
)
echo Compiling Java files...
javac -d out -cp "./lib/json-simple-1.1.1.jar;./lib/junit-platform-console-standalone-1.9.2.jar" src/*.java
echo Running application...
java -cp "out;./lib/json-simple-1.1.1.jar;./lib/junit-platform-console-standalone-1.9.2.jar" src.CourseUI
pause