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

mainJar and classpath should be relative to srcdir instead of current working directory when executing through JAVA_API in javapackager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Environment:

      java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-09-21-113038.cbensen.jdk9udev)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-09-21-113038.cbensen.jdk9udev, mixed mode)

    • Subcomponent:
    • Introduced In Version:
      9

      Description

      Please find the attachment readmod.zip which contains readmod module.

      ISSUE:
              if both "MainJar" and "ClassPath" are mentioned via RelativeFileSet BaseDirectory then mainJar should be picked from RelativeFileSet mentioned BaseDirectory instead currently jars are picked from relative to current working directory because of which you cannot execute JAVA_API from other than jars directory.
      i mean you have to be in jars directory to execute Javapackager.

      EXECUTION LOG:
      Please find the attachment maclog for execution log.


      EXPECTED RESULTS:

      Javapackager API should be able to execute from any directory in the system not only from directory containing jars.


        Attachments

        1. maclog.txt
          1.0 kB
        2. readmod.zip
          1 kB

          Activity

            People

            Assignee:
            cbensen Chris Bensen (Inactive)
            Reporter:
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: