based on the Oracle documentation I tried to construct a URL and link it to a path on my HDD. I used the following codes to do so:
String path = home+ File . separator + " dict ";
URL url = new URL(" file ", null , path );
but then ,though on the Oracle documentation it is said that file can be one of the protocols at first argument, but it giving me the following exception in the practical:
Exception in thread "main" java.net.MalformedURLException: unknown protocol: file
why is that so?