Absolute path for module-path is not working when trying to execute javapackager from other drive in CLI

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 9
    • Component/s: deploy
    • Environment:

      C:\>java -version
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+140)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+140, mixed mode)

    • 9
    • windows
    • Verified

      Attachment contains simple hello-world program module (com.greetings.jar) and also logs of execution.

      Steps to reproduce:

      1. Get a Windows System which has both drives say (c-drive) C: and (D-drive) D: available in it.
      2. place modular jars in c-drive path say "C:\Users\rbgangad.ORADEV\Desktop\rough\temp\modjars", you can change the path according to your system.

      3. Now USE ONLY ABSOLUTE PATH for MODULE-PATH in javapackager command
      ABSOLUTE PATH: "C:\Users\rbgangad.ORADEV\Desktop\rough\temp\modjars"

      4. Navigate to C:\ in command prompt and execute command
      javapackager -deploy -verbose -outdir outdir -outfile test -native exe --module-path C:\Users\rbgangad.ORADEV\Desktop\rough\temp\modjars --module com.greetings/com.greetings.App1 -name AbsoluteTest

      5. Now Navigate to D:\ in command prompt and execute the same command at command line.
      javapackager -deploy -verbose -outdir outdir -outfile test -native exe --module-path C:\Users\rbgangad.ORADEV\Desktop\rough\temp\modjars --module com.greetings/com.greetings.App1 -name AbsoluteTest

      6. Fourth Step successfully executes, check the attachment log "C_Drive_execution.txt"

      7. Fifth Step fails with error "Module Not Found Exception", check the attachment log "D_Drive_execution.txt"

        1. C_Drive_execution.txt
          15 kB
          Ramesh Gangadhar
        2. D_Drive_execution.txt
          3 kB
          Ramesh Gangadhar

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

              Created:
              Updated:
              Resolved: