summarylogtreecommitdiffstats
path: root/jabref.sh
diff options
context:
space:
mode:
authorDan McCurry2016-12-15 10:47:28 -0500
committerDan McCurry2016-12-15 10:47:28 -0500
commite55335d0cd66c4f9515e9790eade131f98c95e3f (patch)
treefc712c7a3864922a711bf0c43d9db3698a48ac69 /jabref.sh
parentfc2a589c841fd44a2847b3b51956ab924e51b8e6 (diff)
downloadaur-e55335d0cd66c4f9515e9790eade131f98c95e3f.tar.gz
Updated to 3.8-dev
Diffstat (limited to 'jabref.sh')
-rw-r--r--jabref.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/jabref.sh b/jabref.sh
index 69ca53f6f92..79d3fa916ab 100644
--- a/jabref.sh
+++ b/jabref.sh
@@ -1,4 +1,5 @@
#!/bin/sh
-cd /usr/share/java
-JAVA_HOME='/usr/lib/jvm/java-8-openjdk'
-PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH java -jar JabRef.jar
+
+# Force usage of latest java version
+JVM_PATH=$(find /usr/lib/jvm/* -maxdepth 0 -type d | sort | tail -n1)
+exec $JVM_PATH/jre/bin/java -jar /usr/share/java/jabref/JabRef.jar "$@"