Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6589825

JKernel throws java.lang.UnsatisfiedLinkError: no management in java.library.path

XMLWordPrintable

      When running a simple JMX test, JKernel throws java.lang.UnsatisfiedLinkError: no management in java.library.path. What is expected is either throw a suitable error if download of this bundle is not possible or download the necessary bundle, but not crash with UnsatisfiedLinkerError.

      Test Case:
      import java.lang.management.*;
      public class JmxHelper {
         public static void main(String[] arg) {
             RuntimeMXBean rbean = ManagementFactory.getRuntimeMXBean();
             System.out.println(" Your using vm = " +
                         rbean.getVmVersion() +
                         " Vm named as = "+rbean.getVmName());
         }
      }

      Error Message:
      Exception in thread "main" java.lang.UnsatisfiedLinkError: no management in java.library.path
             at java.lang.ClassLoader.loadLibrary(Unknown Source)
             at java.lang.Runtime.loadLibrary0(Unknown Source)
             at java.lang.System.loadLibrary(Unknown Source)
             at sun.security.action.LoadLibraryAction.run(Unknown Source)
             at java.security.AccessController.doPrivileged(Native Method)
             at sun.management.ManagementFactory.<clinit>(ManagementFactory.java:467)
             at java.lang.management.ManagementFactory.getRuntimeMXBean(Unknown Source)
             at JmxHelper.main(JmxHelper.java:4)

      JKernel version:
      C:\jkernel\temp>java -version
      java version "1.6.0_04"
      Java(TM) SE Runtime Environment (build 1.6.0_04-b199)
      Java HotSpot(TM) Kernel VM (build 1.7.0-internal, mixed mode)

            Unassigned Unassigned
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: