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, 10 months ago
Illegal char <:> at index 4: file:///c:/selenium/sRcTest.html
via Stack Overflow by Tibor Sz&#225;raz
, 10 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 Ketan Chachad
, 3 weeks ago
Illegal char <:> at index 4: file://user:password@/localhost/log/service.log
via Stack Overflow by Aequitas
, 2 years ago
Illegal char <?> at index 8: C:/temp/?.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, 1 month ago
Once, 6 months ago
Once, 8 months ago
8 times, 8 months ago
10 times, 1 year ago

Write tip

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