java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:///c:/selenium/sRcTest.html

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

The path should start without the leading "/".

,
Expert tip

The path should start without the leading "/".

Solutions on the web

via Google Groups by Tibor Száraz, 9 months ago
Illegal char <:> at index 4: file:///c:/selenium/sRcTest.html
via Stack Overflow by Tibor Sz&#225;raz
, 9 months ago
Illegal char <:> at index 4: file:///c:/selenium/sRcTest.html
via GitHub by rvdb
, 1 year ago
Illegal char <:> at index 4: file:///F:/devtools/eXist/eXist-git/webapp/helloworld/echo.xq
via Stack Overflow by Beko
, 1 year ago
Illegal char <:> at index 4: file:\C:\Users\...\target\...-SNAPSHOT.jar!\some_file.txt
via Stack Overflow by Aequitas
, 2 years ago
Illegal char <?> at index 8: C:/temp/?.txt
via Coderanch by kri shan, 1 year ago
Illegal char <:> at index 2: /c:/a/b/c/d/hai.txt
java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:///c:/selenium/sRcTest.html
at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPath.parse(Unknown Source)

Users with the same issue

3 times, 3 weeks ago
Once, 6 months ago
Once, 7 months ago
8 times, 7 months ago
10 times, 1 year ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.