Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problems with path to resource
Problems with path to resource [message #1759045] Wed, 05 April 2017 14:30
kozhaev Vladimir is currently offline kozhaev VladimirFriend
Messages: 108
Registered: July 2009
Senior Member
Hi all
I have following in my eclipse plug-in

source.. = src/main/java,\
output.. = bin/
bin.includes = plugin.xml,\

And following structure of the project


When I try to load the image with following code, I have null pointer exception.

private static void putInIconMap(
			HashMap<String, Image> pIconsMap, String pEnv, String pIconPath) {
		ImageDescriptor fromPlugin = AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID,
		try {

			Image createImage = fromPlugin.createImage();
			pIconsMap.put(pEnv, createImage);
		} catch (Exception e) {

Look like some problem with the path to file.
But why and how I can to fix it?
Previous Topic:Restricting Target Platform's API usage when developing Eclipse plugins
Next Topic:Line/Column Number missing in Status Bar for custom Text Editor
Goto Forum:

Current Time: Tue Aug 09 05:11:34 GMT 2022

Powered by FUDForum. Page generated in 0.01980 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top