-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
22 lines (17 loc) · 993 Bytes
/
run.bat
File metadata and controls
22 lines (17 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
REM not using maven/gradle was a constraint of this university project, hence this batch file.
if "%~1" == "" (
echo|set /p="The JOGL (jogamp-fat.jar) path must be specified as a parameter to this batch file" & echo.
pause
exit /b
)
REM recursively finds all java files in the src directory and adds them to a file called sources.txt
cd src
(for /R %%f in (*.java) do echo %%f) > ../sources.txt
cd ..
REM compiles all sources from sources.txt into a directory called bin. the jogl class path is also required here.
javac -d bin --add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED -cp %1;. @sources.txt
REM runs the heather4java bytecode. both the jogl and bin class paths are required here.
java --add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED -cp %1;bin;. game.Game
pause
exit /b