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

JAOTC issues with JAR path containing spaces

    Details

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      x86_64

      Description

      ADDITIONAL SYSTEM INFORMATION :
      OpenJDK 12

      A DESCRIPTION OF THE PROBLEM :
      JAOTC ran into an exception if the folder containing the jar file has a space in it's name.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      put a jar file in a folder with a space in the name
      cd to the folder with a space in the name
      jaotc --jar something.jar --linker-path PATH_TO_LINKER --output something.dll


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      a Java Native Image
      ACTUAL -
      Error: java.lang.InternalError: java.net.URISyntaxException: Illegal character in opaque part at index 27: jar:file:///C:/Users/jessie tessie/Desktop/something.jar!/
      java.lang.NullPointerException
              at jdk.aot@12.0.2/jdk.tools.jaotc.Main.run(Main.java:166)
              at jdk.aot@12.0.2/jdk.tools.jaotc.Main.run(Main.java:132)
              at jdk.aot@12.0.2/jdk.tools.jaotc.Main.main(Main.java:88)

      CUSTOMER SUBMITTED WORKAROUND :
      copy the jar someone else

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              bobv Bob Vandette
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: