Where did jvisualvm go?

后端 未结 9 1682
眼角桃花
眼角桃花 2020-12-13 23:21

I am running Mac OSX Snow Leopard.

I\'ve always updated Java using the regular Software Update features of Mac OSX.

I\'ve used the Java jvisualvm

相关标签:
9条回答
  • 2020-12-14 00:09

    Sometimes it is very simple... you need to install visualvm via

    sudo apt-get install visualvm
    

    For locating the files, use

    dpkg -L visualvm
    
    0 讨论(0)
  • 2020-12-14 00:14

    Seems like a mixup of links; the /usr/bin/jvisualvm symlink points to something that does not exist (as people pointed out above). Apparently the jvisualvm executable (stub) exists and the way to fix this for now is to execute:

    cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
    
    sudo ln -s /System/Library/Java/Support/VisualVM.bundle/Contents/Home/bin/jvisualvm .
    

    This requires sudo privileges and creates the missing symlink, pointing to the VisualVM bundle. No idea why it happened but upgrading to latest XCode 4.5.2 did not fix this for me automatically. I am running MacOS X 10.7.5 and java 1.6.0_37

    0 讨论(0)
  • 2020-12-14 00:15

    VisualVM is also available as a standalone application. you can install it from https://visualvm.github.io/download.html

    0 讨论(0)
提交回复
热议问题