/
RunQ_Menu.sh
27 lines (19 loc) · 1.06 KB
/
RunQ_Menu.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
26
27
echo ===========================================================================
echo --- Create executable Jar file Q_Menu.jar
echo ===========================================================================
echo The following command gets the directory in which the script is placed
script_dir=$(dirname $0)
echo script_dir=$(dirname $0)
echo $script_dir
echo -------------------------------------------------------------
echo The following command makes the application directory current
cd $script_dir
echo cd $script_dir
echo -------------------------------------------------------------------
echo The following command creates the Jar file in the current directory
echo jar cvfm Q_Menu.jar manifestMenu.txt -C build/classes queries/Q_Menu.class -C build/classes queries -C build/classes locales
jar cvfm Q_Menu.jar manifestMenu.txt -C build/classes queries/Q_Menu.class -C build/classes queries -C build/classes locales
echo -------------------------------------------
echo The following command executes the Jar file
echo java -jar Q_Menu.jar
java -jar Q_Menu.jar