I wanted the url of a resource in the following form
C:/Users/.../build/classes/jam/lena1.png
To achieve this I wrote the following code
System.out.println(getClass().getResource("lena1.png").getPath());
but it returns
/C:/Users/.../build/classes/jam/lena1.png
Why is the extra forward slash appearing before the url?