summarylogtreecommitdiffstats
path: root/change-jar-dir.patch
blob: 070bd7982a6d4145a90bb4e31c1330918f1ef6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- jvmtop.sh	2013-08-14 11:41:57.000000000 +0200
+++ jvmtop_arch.sh	2016-07-14 14:55:12.656799778 +0200
@@ -5,11 +5,11 @@
 # author: Markus Kolb
 # 
 
-DIR=`cd "\`dirname "$0"\`" && pwd`
+DIR=/usr/share/java/jvmtop
 
 if [ -z "$JAVA_HOME" ] ; then
         JAVA_HOME=`readlink -f \`which java 2>/dev/null\` 2>/dev/null | \
-        sed 's/\/bin\/java//'`
+        sed 's/\/jre\/bin\/java//' | sed 's/\/bin\/java//'`
 fi
 
 TOOLSJAR="$JAVA_HOME/lib/tools.jar"