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

keytool error: java.io.FileNotFoundException when using dot in folder name.

XMLWordPrintable

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      on Windows Platform if folder name contains . ( DOT). exception keytool error: java.io.FileNotFoundException: is thrown

      e.g.
      keytool error: java.io.FileNotFoundException: C:\Users\alexey.t\Downloads\ElAl\app\src\res\raw\myKeystore.bks (The system cannot find the path specified)
      java.io.FileNotFoundException: C:\Users\alexey.t\Downloads\ElAl\app\src\res\raw\myKeystore.bks (The system cannot find the path specified)
          at java.io.FileOutputStream.open0(Native Method)
          at java.io.FileOutputStream.open(Unknown Source)
          at java.io.FileOutputStream.<init>(Unknown Source)
          at java.io.FileOutputStream.<init>(Unknown Source)
          at sun.security.tools.keytool.Main.doCommands(Unknown Source)
          at sun.security.tools.keytool.Main.run(Unknown Source)
          at sun.security.tools.keytool.Main.main(Unknown Source)


      https://stackoverflow.com/questions/46871893/keystore-the-system-cannot-find-the-path-specified?noredirect=1#comment80694046_46871893

      A DESCRIPTION OF THE PROBLEM :
      Review complete thread here.

      https://stackoverflow.com/questions/46871893/keystore-the-system-cannot-find-the-path-specified?noredirect=1#comment80694046_46871893

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      https://stackoverflow.com/questions/46871893/keystore-the-system-cannot-find-the-path-specified?noredirect=1#comment80694046_46871893

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      keytool should able to run without .(DOT) in folder name
      ACTUAL -
      java.io.FileNotFoundException: is thrown

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      keytool error: java.io.FileNotFoundException: C:\Users\alexey.t\Downloads\ElAl\app\src\res\raw\myKeystore.bks (The system cannot find the path specified)
      java.io.FileNotFoundException: C:\Users\alexey.t\Downloads\ElAl\app\src\res\raw\myKeystore.bks (The system cannot find the path specified)
          at java.io.FileOutputStream.open0(Native Method)
          at java.io.FileOutputStream.open(Unknown Source)
          at java.io.FileOutputStream.<init>(Unknown Source)
          at java.io.FileOutputStream.<init>(Unknown Source)
          at sun.security.tools.keytool.Main.doCommands(Unknown Source)
          at sun.security.tools.keytool.Main.run(Unknown Source)
          at sun.security.tools.keytool.Main.main(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      remove .(DOT) from folder name and keytool works correctly

            psonal Pallavi Sonal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: