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

SA: Incorrect jar name handle by jps in case java -jar.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      generic, solaris

      Description

      Jps handles jar name incorrectly in case jar name is specified by relative path(for ex. current path).

      How to reproduce:

      download attached files into the same dir.
      Execute jps_bug.sh <JAVA_HOME>
      where <JAVA_HOME> is a home directory of the jdk to be tested.
      There are two problems:

      1. Without -l option, the output is
      32289 jar
      i.e. 'jar' instead of path to JAR.

      2. With jps -l, full path name is not shown if argument to java -jar is relative path name even though jps documentations says:
      "-l Output the full package name for the application’s main class or the full path name to the application’s JAR file."

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sballal Sharath Ballal
                Reporter:
                imikhailsunw Igor Mikhailuk (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: