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.sh | |
| download | java-bootstrap-5504ca88e98f8451a6dc1c719862f32ca54bfc50.tar.gz java-bootstrap-5504ca88e98f8451a6dc1c719862f32ca54bfc50.tar.xz java-bootstrap-5504ca88e98f8451a6dc1c719862f32ca54bfc50.zip | |
initial commit
Diffstat (limited to 'run.sh')
| -rw-r--r-- | run.sh | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | # clean up | ||
| 4 | rm -rf bin && mkdir bin | ||
| 5 | |||
| 6 | # run the app if compilation succeeded | ||
| 7 | if javac -d bin -cp "lib/*" src/com/example/App.java; then | ||
| 8 | echo "--- Running Application ---" | ||
| 9 | java -cp "bin:lib/*" com.example.App | ||
| 10 | else | ||
| 11 | echo "Compilation failed." | ||
| 12 | fi | ||