-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_BC.sh
executable file
·26 lines (20 loc) · 935 Bytes
/
run_BC.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh
base_jar="$HOME/.m2/repository/org/openjfx/javafx-base/12.0.2/javafx-base-12.0.2-linux.jar"
graphics_jar="$HOME/.m2/repository/org/openjfx/javafx-graphics/12.0.2/javafx-graphics-12.0.2-linux.jar"
controls_jar="$HOME/.m2/repository/org/openjfx/javafx-controls/12.0.2/javafx-controls-12.0.2-linux.jar"
ctrl=1
if [ ! -f $base_jar ] || [ ! -f $graphics_jar ] || [ ! -f $controls_jar ] ; then
ctrl=0
echo $base_jar
echo $graphics_jar
echo $controls_jar
echo "\tone of or all libraries are missing!"
fi
dir_app="out/production/tank_AI_-_Battle_City"
if [ ! -d $dir_app ] ; then
ctrl=0
echo "Directory \"$dir_app\" is missing!"
fi
if [ $ctrl -eq 1 ] ; then
java --add-modules javafx.base,javafx.graphics,javafx.controls --add-reads javafx.base=ALL-UNNAMED --add-reads javafx.graphics=ALL-UNNAMED -classpath $dir_app:$base_jar:$graphics_jar:$controls_jar -p $base_jar:$graphics_jar:$controls_jar com.company.Main
fi