diff options
| author | Kostya <mail@sartin.in> | 2026-07-24 21:45:17 +0000 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-07-24 21:45:17 +0000 |
| commit | 5504ca88e98f8451a6dc1c719862f32ca54bfc50 (patch) | |
| tree | eddccf84e88009816d6d8646ef8cd1659bf33efd /run.bat | |
| download | java-bootstrap-5504ca88e98f8451a6dc1c719862f32ca54bfc50.tar.gz java-bootstrap-5504ca88e98f8451a6dc1c719862f32ca54bfc50.tar.xz java-bootstrap-5504ca88e98f8451a6dc1c719862f32ca54bfc50.zip | |
initial commit
Diffstat (limited to 'run.bat')
| -rw-r--r-- | run.bat | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -0,0 +1,16 @@ | |||
| 1 | @echo off | ||
| 2 | :: clean old binaries | ||
| 3 | rmdir /s /q bin | ||
| 4 | mkdir bin | ||
| 5 | |||
| 6 | :: compile source files and include libraries | ||
| 7 | javac -d bin -cp "lib/*" src/com/example/App.java | ||
| 8 | |||
| 9 | :: run the application if compilation succeeded | ||
| 10 | if %errorlevel% equ 0 ( | ||
| 11 | echo --- Running Application --- | ||
| 12 | java -cp "bin;lib/*" com.example.App | ||
| 13 | ) else ( | ||
| 14 | echo Compilation failed. | ||
| 15 | ) | ||
| 16 | pause | ||