[英]How to get image path in eclipse rcp application
1> I am developing desktop application using eclipse rcp mail. 1>我正在使用eclipse rcp mail开发桌面应用程序。
2> I have to display image from project path. 2>我必须显示项目路径中的图像。
3> I get that image when i run project by click on that project. 3>我通过单击该项目来运行项目时得到该图像。
4> but when i am creating exe of that project by exporting as a eclipse project and run that exe at that time don't get that image. 4>但是当我通过导出为Eclipse项目来创建该项目的exe并在那时运行该exe时,不会得到该图像。
Is there any reason you mentioned it was an RCP app? 您是否有任何理由提到它是RCP应用程序?
Have you tried the following? 您是否尝试过以下方法?
getClass().getResources("/whatever.png");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.