java.nio.file.InvalidPathException: Illegal char <:> at index 2: /c:/a/b/c/d/hai.txt

Coderanch | kri shan | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    InvalidPathException

    Coderanch | 2 years ago | kri shan
    java.nio.file.InvalidPathException: Illegal char <:> at index 2: /c:/a/b/c/d/hai.txt
  2. 0

    Windows环境下,浏览器请求过程中后台报java.nio.file.InvalidPathException: Illegal char 错误

    GitHub | 2 years ago | yuchaozhou
    java.nio.file.InvalidPathException: Illegal char <:> at index 2: /E:/Java/IDE/sts-bundle/vfabric-tc-server-developer-2.9.6.RELEASE/base-instance/wtpwebapps/deep-qa-web/WEB-INF/classes/web/dic/word_v_1_3/word.local.conf
  3. 0

    java.nio.file.InvalidPathException on Windows

    GitHub | 3 years ago | georgeOsdDev
    java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/tanaka/Documents/git/xitrum-new/target/scala-2.10/classes//i18n
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fix path exception when autoreloading i18n files on Windows

    GitHub | 3 years ago | ngocdaothanh
    java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/tanaka/Documents/git/xitrum-new/target/scala-2.10/classes//i18n
  6. 0

    Monitor a http resource using Java NIO watch service

    Stack Overflow | 2 years ago | Rajeev Singh
    java.nio.file.InvalidPathException: Illegal char &lt;:&gt; at index 5: https://abc/dir

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.nio.file.InvalidPathException

      Illegal char <:> at index 2: /c:/a/b/c/d/hai.txt

      at sun.nio.fs.WindowsPathParser.normalize()
    2. Java RT
      Paths.get
      1. sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      2. sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      3. sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      4. sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
      5. sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
      6. java.nio.file.Paths.get(Paths.java:84)
      6 frames