Cynebeald - 2007-07-28


I was trying to hook profiler4j into eclipse, and got the following error:

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: javassist/ClassPool
        at net.sf.profiler4j.agent.Agent.premain(
        ... 6 more
FATAL ERROR in native method: processing of -javaagent failed

I tried spawning Eclipse both in a 1.6 JRE as well as in 1.5.0_10 and always got the same error. Any idea what's going wrong?