From 5504ca88e98f8451a6dc1c719862f32ca54bfc50 Mon Sep 17 00:00:00 2001 From: Kostya Date: Fri, 24 Jul 2026 21:45:17 +0000 Subject: initial commit --- .gitignore | 15 +++++++++++++++ README.md | 1 + run.bat | 16 ++++++++++++++++ run.sh | 12 ++++++++++++ src/confing.properties | 0 5 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 run.bat create mode 100644 run.sh create mode 100644 src/confing.properties diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b63bf17 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# Ignore compiled Java bytecode +bin/ +*.class + +# Ignore packaged binaries +*.jar +*.war + +# Ignore OS-specific files +.DS_Store +Thumbs.db + +# Optional: Ignore environment properties if they hold local secrets +# config.properties + diff --git a/README.md b/README.md new file mode 100644 index 0000000..091c160 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +New java project bootstrap diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..73d3903 --- /dev/null +++ b/run.bat @@ -0,0 +1,16 @@ +@echo off +:: clean old binaries +rmdir /s /q bin +mkdir bin + +:: compile source files and include libraries +javac -d bin -cp "lib/*" src/com/example/App.java + +:: run the application if compilation succeeded +if %errorlevel% equ 0 ( + echo --- Running Application --- + java -cp "bin;lib/*" com.example.App +) else ( + echo Compilation failed. +) +pause diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..173c155 --- /dev/null +++ b/run.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# clean up +rm -rf bin && mkdir bin + +# run the app if compilation succeeded +if javac -d bin -cp "lib/*" src/com/example/App.java; then + echo "--- Running Application ---" + java -cp "bin:lib/*" com.example.App +else + echo "Compilation failed." +fi diff --git a/src/confing.properties b/src/confing.properties new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3