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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • deploy
    • 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"

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

              Created:
              Updated:
              Resolved: