-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·28 lines (24 loc) · 895 Bytes
/
run.sh
File metadata and controls
executable file
·28 lines (24 loc) · 895 Bytes
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
28
#!/bin/sh
my_java=`which java`
jre_dir=$(dirname $(readlink -f $my_java))
lib=$(readlink -f "./lib/native/linux64")
snapshot="snapshot_blob.bin"
natives="natives_blob.bin"
icudtl="icudtl.dat"
cp=`find ./lib/dependencies/ -iname "*.jar" ! -iname "*windows*" -print0 \
| xargs -0 readlink -f \
| tr "\n" ":"`
if [ ! -h "$jre_dir/$snapshot" -o ! -h "$jre_dir/$natives" -o ! -h "$jre_dir/$icudtl" ]; then
echo "Symbolic links need to be set up before running this script."
echo "Please run the following (possibly as root)."
echo "ln -s \"$lib/$snapshot\" \"$jre_dir/$snapshot\""
echo "ln -s \"$lib/$natives\" \"$jre_dir/$natives\""
echo "ln -s \"$lib/$icudtl\" \"$jre_dir/$icudtl\""
exit 1
fi
export LD_LIBRARY_PATH="$lib:$LD_LIBRARY_PATH"
export LD_PRELOAD="libcef.so"
"$my_java" \
-Djava.library.path="$lib" \
-cp "${cp}target/eternity-0.1.jar" \
uk.me.mantas.eternity.EternityKeeper