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

javapackager.exe fails to launch: Unrecognized option: -m

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+169)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+169, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 10.0.15063]

      A DESCRIPTION OF THE PROBLEM :
      javapackager.exe cannot be launched on Windows (in all but one case, see steps to reproduce). This is problematic, because build tools like Maven typically use absolute paths to refer to JDK tools, which currently doesn't work.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      in Command Prompt:
      > "C:\Program Files\Java\jdk-9\bin\javapackager.exe" -help
      > cd "C:\Program Files\Java\jdk-9\bin"
      > .\javapackager.exe -help
      > javapackager.exe -help

      in Windows PowerShell:
      > & "C:\Program Files\Java\jdk-9\bin\javapackager.exe" -help
      > cd "C:\Program Files\Java\jdk-9\bin"
      > .\javapackager.exe -help
      > javapackager.exe -help


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      all 6 javapackager commands succeed and show its help
      ACTUAL -
      only the last javapackager command succeeds and shows its help

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Unrecognized option: -m
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            • Assignee:
              vdrozdov Victor Drozdov (Inactive)
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: