Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I was going to take that approach, but my IDE is telling me that the method is deprecated Commented Feb 16, 2014 at 14:36
  • Yes, in Java 6 File.toURL() is deprecated. But the JavaDoc was also updated and suggests to use FILE.toURI().toURL() instead. I'll update the answer. Commented Feb 16, 2014 at 14:39
  • Thanks, it found it now Commented Feb 16, 2014 at 14:45