Skip to main content

Help needed on Java Attach API

1 reply [Last post]
siri09
Offline
Joined: 2012-01-09
Points: 0

Hi,

I am using java 6 and trying to use Attach API to do local jmx monitoring.

I was able to use the api with jdk6 and connect to other jvms in development environment.

How do i use the api with jre instead of jdk so that it can be used in customer environment? I added tools.jar in the classpath but i get the below error,

"java.lang.UnsatisfiedLinkError: no attach in java.library.path"

I also tried passing "java.library.path"(pointing to attach.dll) as a VM argument but still get the same error.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
charlesrajkumar
Offline
Joined: 2012-01-11
Points: 0

siri09 wrote:

Hi,

I am using java 6 and trying to use Attach API to do local jmx monitoring.

I was able to use the api with jdk6 and connect to other jvms in development environment.

How do i use the api with jre instead of jdk so that it can be used in customer environment? I added tools.jar in the classpath but i get the below error,

"java.lang.UnsatisfiedLinkError: no attach in java.library.path"

I also tried passing "java.library.path"(pointing to attach.dll) as a VM argument but still get the same error.

---