Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue May 29, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

Thank you! Now it works!

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant