Question : Getting UnsatisfiedLinkError in WAS 6.1 when using -javaagent:[jar path] as VM Parameter

We are using a java file(SizeOf.java) to get the Object Size of Object. This has a premain method which provides  the handle of the Instrumentation object when JVM initializes. This is achieved by using
-javaagent:[path of the jar containing SizeOf.class]

Inside WAS when we provide the -javaagent:[jar path] as VM Parameter. we are getting error as below...
Caused by: java.lang.Throwable: java.lang.UnsatisfiedLinkError: sun/instrument/InstrumentationImpl.getObjectSize0(Ljava/lang/Object;)J
      at sun.instrument.InstrumentationImpl.getObjectSize(InstrumentationImpl.java:116)
Kindly help us resolve this issue.

Answer : Getting UnsatisfiedLinkError in WAS 6.1 when using -javaagent:[jar path] as VM Parameter

Please close this track.
The problem was that we had attached the javaagent library a file system path. We got over this by putting this library in the web inf lib.  Because of unsatidied linkage errorit looked to me that a dll was perhaps missung or not available in the PATH. ( This being a windows system). The definition of gerObjectSize is native. However, sice the system continuted to work as a standalone application, it proved that the systm had access to the underlying implementations. Probably , the initial load refernce point was not availble in the loaded classes in the WAS JVM.
Random Solutions  
 
programming4us programming4us