Eclipse平台URL抛出MalformedURLException

时间:2013-10-27 19:40:15

标签: eclipse url resources malformedurlexception

以下代码:

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

...抛出这个:

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

我错过了什么?

0 个答案:

没有答案