init commit
This commit is contained in:
14
compile.sh
Executable file
14
compile.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Compiling Java source files..."
|
||||
mkdir -p bin
|
||||
javac -d bin src/*.java
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Compilation successful!"
|
||||
echo "Run the application with: java -cp bin Main"
|
||||
else
|
||||
echo "Compilation failed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user