cd /usr/bin
sudo unlink jvisualvm
sudo ln -s ../lib/jvm/java-6-sun/bin/jvisualvm jvisualvm
Before doing that I tried two other approaches:
(1) running jvisuavm with --jdkhome /usr/lib/jvm/java-6-sun
(2) setting sun's java to be default jvm (with update-java-alternatives)
and reinstalling visualvm.
None of that worked (visualvm still opened
with openjdk). Thus these appear to be bugs in ubuntus' lucid distro:
the link to /usr/bin/jvisualvm is not updated on change of jvm and
the jdkhome option does not seem to work correctly.
Same problem here: the mentioned JFluid problem and failure to connect to
a locally running Java app later.
Found a workaround. I installed sun-java6-* like suggested in the post: ubuntuforums. org/showpost. php?p=9320525& postcount= 1
http://
and manually changed (soft link) /usr/bin/jvisualvm to sun's jvisualvm:
cd /usr/bin jvm/java- 6-sun/bin/ jvisualvm jvisualvm
sudo unlink jvisualvm
sudo ln -s ../lib/
Before doing that I tried two other approaches: jvm/java- 6-sun java-alternativ es)
(1) running jvisuavm with --jdkhome /usr/lib/
(2) setting sun's java to be default jvm (with update-
and reinstalling visualvm.
None of that worked (visualvm still opened
with openjdk). Thus these appear to be bugs in ubuntus' lucid distro:
the link to /usr/bin/jvisualvm is not updated on change of jvm and
the jdkhome option does not seem to work correctly.