aboutsummaryrefslogtreecommitdiffstats
path: root/run.bat
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-08-06 14:42:43 +0000
committerKostya <mail@sartin.in>2026-08-06 14:42:43 +0000
commitc3946151d543f568983f1ba16a963ea7dd4b9055 (patch)
treec3390a0c37332b0bf7b2049f3de13cd1f900629d /run.bat
downloadguess-market-c3946151d543f568983f1ba16a963ea7dd4b9055.tar.gz
guess-market-c3946151d543f568983f1ba16a963ea7dd4b9055.tar.xz
guess-market-c3946151d543f568983f1ba16a963ea7dd4b9055.zip
template initial commit
Diffstat (limited to 'run.bat')
-rw-r--r--run.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/run.bat b/run.bat
new file mode 100644
index 0000000..8480652
--- /dev/null
+++ b/run.bat
@@ -0,0 +1,16 @@
1@echo off
2:: clean old binaries
3rmdir /s /q bin
4mkdir bin
5
6:: compile source files and include libraries
7javac -d "bin/classes" -cp "lib/*" src/main/java/com/example/App.java
8
9:: run the application if compilation succeeded
10if %errorlevel% equ 0 (
11 echo --- Running Application ---
12 java -cp "bin/classes;lib/*" com.example.App
13) else (
14 echo Compilation failed.
15)
16pause