Eclipse platform URL throws MalformedURLException

1.2k Views Asked by At

The following code:

URL url = new URL("platform:/resource/MyProjectName") 

...throws this:

Exception in thread "main" java.net.MalformedURLException: unknown protocol: platform

What am I missing?

0

There are 0 best solutions below