allwmh / jvmtop

Automatically exported from code.google.com/p/jvmtop
0 stars 0 forks source link

Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.AttachNotSupportedException #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
uname -a

Linux vm11 2.6.18-194.el5xen #1 SMP Fri Apr 2 15:34:40 EDT 2010 x86_64 x86_64 
x86_64 GNU/Linux

echo $JAVA_HOME
/usr/java/jdk1.6.0_37/jre

(this is the official jdk)

./jvmtop.sh

Exception in thread "main" java.lang.NoClassDefFoundError: 
com/sun/tools/attach/AttachNotSupportedException
        at com.jvmtop.VMOverviewView.scanForNewVMs(VMOverviewView.java:122)
        at com.jvmtop.VMOverviewView.printView(VMOverviewView.java:25)
        at com.jvmtop.JvmTop.run(JvmTop.java:70)
        at com.jvmtop.JvmTop.main(JvmTop.java:41)
Caused by: java.lang.ClassNotFoundException: 
com.sun.tools.attach.AttachNotSupportedException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 4 more

sorry for my poor english.

Original issue reported on code.google.com by worldhig...@gmail.com on 27 May 2013 at 3:38

GoogleCodeExporter commented 9 years ago
jvmtop will most probably not run under a JRE - it requires a JDK.

Can you please try setting JAVA_HOME to

/usr/java/jdk1.6.0_37 

instead and retry running jvmtop?

Original comment by patric.r...@gmail.com on 27 May 2013 at 10:17

GoogleCodeExporter commented 9 years ago
Thank you! Now it works!

Original comment by worldhig...@gmail.com on 28 May 2013 at 1:04

GoogleCodeExporter commented 9 years ago

Original comment by patric.r...@gmail.com on 28 May 2013 at 4:28