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

java.lang.ClassNotFoundException: riemann.jvm_profiler.Agent #7

Closed
hkandasa opened this issue Dec 22, 2015 · 1 comment
Closed

java.lang.ClassNotFoundException: riemann.jvm_profiler.Agent #7

hkandasa opened this issue Dec 22, 2015 · 1 comment

Comments

@hkandasa
Copy link

I built the profiling jar using lein as mentioned in https://github.com/riemann/riemann-jvm-profiler

Here is the command to run this as a java agent
-javaagent:'/var/opt/lib/riemann-jvm-profiler-0.1.0.jar=prefix=MyApp,host=MyRiemannServer'

At the runtime i see this error

Exception in thread "main" java.lang.ClassNotFoundException: riemann.jvm_profiler.Agent
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

My Lein Version
lein --version
Leiningen 1.7.1 on Java 1.8.0_66 Java HotSpot(TM) 64-Bit Server VM

When i unzip the riemann-jvm-profiler-0.1.0.jar,I just see stack.clj under /riemann/jvm_profiler
I see Agent.Java under /riemann
Is there any problem with the build.

@hkandasa
Copy link
Author

Issue with lein version.. Issue was resolved after upgrading lein version

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

No branches or pull requests

1 participant