This file is indexed.

/usr/bin/jvisualvm is in visualvm 1.3.2-0ubuntu2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
73
#!/bin/sh

#
# resolve symlinks
#

PRG=$0
progdir=/usr/bin
APPNAME=visualvm
BASEDIR=/usr/lib/visualvm

jdkhome=
for j in /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun; do
    if [ -x $j/bin/javac ]; then
	jdkhome=$j
	break
    fi
done
if [ -z "$jdkhome" ]; then
    echo >&2 "No jdkhome found"
    exit 1
fi

. "$BASEDIR/etc/$APPNAME".conf

# XXX does not correctly deal with spaces in non-userdir params
args=""

userdir="${default_userdir}"

while [ $# -gt 0 ] ; do
    case "$1" in
        --userdir) shift; if [ $# -gt 0 ] ; then userdir="$1"; fi
            ;;
        *) args="$args \"$1\""
            ;;
    esac
    shift
done

if [ -f "${userdir}/etc/$APPNAME".conf ] ; then
    . "${userdir}/etc/$APPNAME".conf
fi

readClusters() {
  if [ -x /usr/ucb/echo ]; then
    echo=/usr/ucb/echo
  else
    echo=echo
  fi
  while read X; do
    if [ "$X" \!= "" ]; then
      $echo "$BASEDIR/$X"
    fi
  done
}

clusters=`(cat "$BASEDIR/etc/$APPNAME".clusters; echo) | readClusters | tr '\012' ':'`

if [ ! -z "$extra_clusters" ] ; then
    clusters="$clusters:$extra_clusters"
fi

nbexec=`echo "$BASEDIR"/platform*/lib/nbexec`
nbexec=/usr/share/netbeans/platform12/lib/nbexec

eval exec /bin/bash '"$nbexec"' \
            --jdkhome '"$jdkhome"' \
            --branding '"$APPNAME"' \
            --clusters '"$clusters"' \
            --userdir '"${userdir}"' \
            ${default_options} \
            "$args"