My profiler's not working
easyroom Sep 22, 2011 11:39 PMHey, guys, I just downloaded jboss-profiler-2.0.0.Beta5 and jboss-5.1.0.GA, fellow the setps in the user guide to install them on my win7 system.
i call the run.bat in the command line and got the fellowing output.
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: D:\jboss-5.1.0.GA
JAVA: D:\MyEclipse_8.x\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gc
terval=3600000 -Dorg.jboss.resolver.warning=true -server -Djboss-profiler.properties=jboss-profiler.properties -javaagent:jboss-profiler.j
CLASSPATH: D:\jboss-5.1.0.GA\bin\run.jar
===============================================================================
JBoss Profiler 2.0.0.Beta5 (Sun Microsystems Inc. 1.6.0_13)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.lang.NoClassDefFoundError: org/jboss/logging/Logger
at org.jboss.remoting.InvokerLocator.<clinit>(InvokerLocator.java:72)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.jboss.profiler.agent.Agent.boot(Agent.java:945)
at org.jboss.profiler.agent.Agent.premain(Agent.java:860)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
it can start up if only i remove the -javaagent:jboss-profiler.jar option, so my guess is that i should include some libs, so I move this out of its if block
set JAVA_OPTS=%JAVA_OPTS% "-Djava.library.path=%JBOSS_NATIVE_HOME%;%PATH%;%JBOSS_HOME%\bin;%JBOSS_HOME%\lib"
of coures it didn't work
I'll be very appricaited if given any hints