i want to show like ..i have taken one string vale="D://App//Test" and this path have to make as Link.if i click on this this window path wil open.How to do.Can you please suggest me.
Asked
Active
Viewed 5,021 times
1 Answers
1
Using java.nio.file:
Paths.get("D://App//Test").toRealPath().toUri().toURL();

fge
- 119,121
- 33
- 254
- 329
-
-
-
-
`java.nio.file.Paths`. [javadoc](http://docs.oracle.com/javase/8/docs/api/java/nio/file/Paths.html) – fge Dec 05 '14 at 10:55
-
-
-
i have import java.nio.file.Paths; package.But it is showing can not find toURI() method......@fge – md razi Dec 05 '14 at 11:05
-
My mistake, mispelled the method name; but you could have detected this error if you followed the javadoc links – fge Dec 05 '14 at 11:06
-