-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUNME
executable file
·24 lines (19 loc) · 1.33 KB
/
RUNME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Classpath separator.
# Cygwin: ';' only (I think)
# Linux: ':' only (openjdk-8 at least)
# Darwin: ':' only
# Darwin and Linux both have uname, so that's a good differentior from Cygwin.
# XXX hmm according to Makefile, cygwin does have uname, and it outputs "Cygwin"? so I'm not sure this will work. should use logic in Makefile probably.
uname && sep=':' || sep=';'
# If everything including com is in ShephardsPlayApplet.jar,
# then can run it standalone with no classpath
#exec /usr/bin/java -Xmx10g -jar ShephardsPlayApplet.jar "$@"
# Have to do it this way if com is not in ShephardsPlayApplet.jar
#exec /usr/bin/java -Xmx10g -classpath "ShephardsPlayApplet.jar${sep}donhatchsw.jar" ShephardsPlayApplet "$@"
# This way doesn't require jar to be made at all, just the class files
echo /usr/bin/java -Xmx10g -classpath ".${sep}donhatchsw.jar" ShephardsPlayApplet "$@"
exec /usr/bin/java -Xmx10g -classpath ".${sep}donhatchsw.jar" ShephardsPlayApplet "$@"
# Requires neither jar nor donhatchsw to be made (note that we still *compile* out of donhatchsw.jar in current directory though... this is just useful for non-interface fixes or debugging in donhatchsw)
#echo /usr/bin/java -Xmx10g -classpath ".${sep}../donhatchsw" ShephardsPlayApplet "$@"
#exec /usr/bin/java -Xmx10g -classpath ".${sep}../donhatchsw" ShephardsPlayApplet "$@"