Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6560

Problem encountered during the implementation of JDB

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JDK
    • None
    • windows, running in eclipse and command line

    Description

      I encountered the problem when I tried to learn and run a JDI sample to help myself get familiar with the JDI library.

      The sample is originally written by Daven and published in http://www.ibm.com/developerworks/cn/java/j-lo-jpda4/index.html. It runs well with Sun's JDI implementation but fails with Eclipse's JDI implementation.

      With Sun's JDI, the result is:
      =====================================================
      VM started
      Class org.apache.harmony.jdb.HelloWorld is already prepared
      Reach line 10 of org.apache.harmony.jdb.HelloWorld
      The local variable str at line 10 is Hello world! of java.lang.String
      =====================================================

      With Eclipse's JDI, the result is:
      =====================================================
      VM started
      =====================================================
      After the first line printed out, the program seems to be blocked forever.

      The jars that I used to run the sample with Eclipse's JDI are:
      =====================================================
      jdi.jar
      jdimodel.jar
      org.eclipse.core.resources_3.6.0.v20100526-0737.jar
      org.eclipse.equinox.common_3.6.0.v20100503.jar
      org.eclipse.core.runtime_3.6.0.v20100505.jar
      org.eclipse.debug.core_3.6.0.v20100519.jar
      org.eclipse.osgi_3.6.0.v20100517.jar
      =====================================================
      I've asked about the problem in the Eclipse JDT mail list and a guy named Darin Wright, who seems to be an employee of IBM Canada, tell me that these jars are required to use Eclipse JDI.

      Attachments

        1. sample.zip
          6 kB
          Daniel Gong

        Activity

          People

            Unassigned Unassigned
            piscesnut Daniel Gong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: