ClassNotFoundException with SIGAR API -


i'm trying work sigar api, , added external jar "sigar.jar" build path eclipse project. compiles no problem, when try run main class, :

cpu cpu = new cpu();

it gives me error:

    [java] exception in thread "main" java.lang.noclassdeffounderror: org/hyperic/sigar/cpu  [java]     @ pt.client.user.main(user.java:90)  [java] caused by: java.lang.classnotfoundexception: org.hyperic.sigar.cpu  [java]     @ java.net.urlclassloader$1.run(urlclassloader.java:202)  [java]     @ java.security.accesscontroller.doprivileged(native method)  [java]     @ java.net.urlclassloader.findclass(urlclassloader.java:190)  [java]     @ java.lang.classloader.loadclass(classloader.java:306)  [java]     @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301)  [java]     @ java.lang.classloader.loadclass(classloader.java:247)  [java]     ... 1 more  [java] java result: 1 

what may missing?

i think missed include .so file specific platform.

these files located ../hyperic-sigar-folder/sigar-bin/lib.

for example, if running under linux 32 bit, have include file libsigar-x86-linux.so class-path well.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -