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

jdb doesn't work on classes using native methods

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Not an Issue
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description

      jdb doesn't work on classes using native methods

      The compilation (C and java is fine)

      executing the application with java is ok, but executing it with jdb throws an exception

      Test :

      Compile the HelloWorld application from http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html

      Run it with java

      java Main

      everything's fine

      Run it with jdb :

      jdb Main
      Initializing jdb...
      0xee321d78:class(Main)
      >
      run
      run Main
      running ...
      main[1]
      Uncaught exception: java.lang.UnsatisfiedLinkError no hello in shared library path
      at java.lang.Runtime.loadLibrary(Runtime.java)
      at java.lang.System.loadLibrary(System.java)
      at HelloWorld.<clinit>(HelloWorld.java:5)
      at Main.main(Main.java:4)
      at sun.tools.debug.MainThread.run(Agent.java:55)

      main[1]


      The LD_LIBRARY_PATH variable is correctly set, you get this message even if you give an absolute path for the native library.

        Attachments

          Activity

            People

            • Assignee:
              rfield Robert Field
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: