This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
/
run
executable file
·72 lines (64 loc) · 2.07 KB
/
run
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
### Run script for FrostWire.
### Builds a classpath for all jars & components.
if [ -z ${JAVA_HOME} ]; then
echo "Error: I don't know where is your Java Virtual Machine."
echo "Please make sure to set your JAVA_HOME environment variable."
exit 1
fi
CLASSPATH=build/libs/frostwire.jar
PS=":"
OPTS="-Xms64m -Xmx256m -Djava.net.preferIPV6Addresses=false -ea -Djava.net.preferIPv4stack=true"
#setup the java options & initial system-dependent classpath
PLATFORM=`uname`
case ${PLATFORM} in
Linux)
OPTS="${OPTS} -Djava.library.path=lib/native";
OPTS="${OPTS} -XX:-UseSplitVerifier ";
export PATH="${PATH}:lib/native";
ADDITIONAL=linux
;;
Darwin)
CLASSPATH="${CLASSPATH}:/System/Library/Java";
OPTS="${OPTS} -Djava.library.path=lib/native";
OPTS="${OPTS} -Djava.endorsed.dirs=\"\"";
OPTS="${OPTS} -Djava.nio.preferSelect=true";
OPTS="${OPTS} -Xdock:icon=FrostWire.icns";
OPTS="${OPTS} -Dcom.sun.management.jmxremote.port=9595";
OPTS="${OPTS} -Dcom.sun.management.jmxremote.ssl=false";
OPTS="${OPTS} -Dcom.sun.management.jmxremote.authenticate=false";
OPTS="${OPTS} -Djava.rmi.server.hostname=127.0.0.1";
OPTS="${OPTS} -Dawt.useSystemAAFontSettings=on";
OPTS="${OPTS} -Dswing.aatext=true";
OPTS="${OPTS} -Dsun.java2d.opengl=True";
ADDITIONAL=osx
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
;;
CYGWIN*)
PS=";"
export PATH=$PATH:lib/native
ADDITIONAL=windows
;;
*)
echo "Sorry, platform '${platform}' is not recognized.";
exit 1;
;;
esac
export CLASSPATH
echo Classpath:
echo $CLASSPATH
export JAVA_BIN=${JAVA_HOME}/bin/java
echo Java Home:
echo ${JAVA_HOME}
echo Java Binary:
echo ${JAVA_BIN}
echo Java Version:
$JAVA_BIN -version
echo
echo "Let's go!"
case ${PLATFORM} in
Darwin)
${JAVA_BIN} ${OPTS} -Xdock:name="FrostWire GIT" -Ddebug=1 com.limegroup.gnutella.gui.Main $* ;;
*)
${JAVA_BIN} ${OPTS} -Ddebug=1 com.limegroup.gnutella.gui.Main $* ;;
esac