Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JConsole running in JRE (not JDK)

843798Jun 4 2009 — edited Jun 4 2009
I have a server with a JRE(1.6.0_04) (not JDK). For reasons out of my control, I cannot install a JDK on this server. I want to use JConsole to monitor Local Processes. JRE does not include JConsole.exe. However, I want to "install" JConsole on this server. I tried copying the jconsole.exe from a JDK installation on a different server to the \bin directory of the JRE. I ran JConsole. I got a class not found exception or something like that. So I then copied the jconsole.jar file from the \lib directory of the JDK installation and copied it to the \lib directory of the JRE installation. JConsole started up but it listed no Local Processes. I then copied over the tools.jar from the JDK to the JRE \lib directory. Now, I'm getting Local Processes list. But I'm also getting the following message from the JConsole output:

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

Update:
I found a "attach.dll" in the JDK\jre\bin directory. I copied this to the JRE\bin directory. UnsatisifiedLinkError went away and Jconsole was running without error.

I have my local java process running as Windows Service. I use Task Manager to get the PID (Process ID) which was 3343 and launch jconsole from the command prompt using jconsole 3343.I now get the following error:

Invalid process id:3343

My Windows Service is running under my user name, so security/privileges shouldn't be an issue. I ran another java process (SQUIRREL SQL Client) and was able to connect to the local process via Jconsole. No other error messages are present.

So, now I'm really stuck.


What files do I need to copy from the JDK to the JRE to get JConsole to work?
Is there a substitute for JConsole that shows Local Processes? (For other reasons out of my control, I'm not allowed to run a JMX server for remote access)

Thanks in advance!

Edited by: channegan on Jun 4, 2009 5:09 AM

Edited by: channegan on Jun 4, 2009 5:27 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2009
Added on Jun 4 2009
3 comments
4,888 views