• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Image doesnot get displayed in an Eclipse OSGi Project

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created an Eclipse OSGi project and in the code i am trying to a create a new ImageIcon using the following code

url =Myclass.class.getResource("/images/default.gif");
image = new ImageIcon("/images/default.gif");

I am trying to run the Eclipse plugin from the cmd prompt using the following cmd
%JAVA_HOME%\bin\java -jar org.eclipse.osgi_3.2.0.v20060601.jar

I have created an image folder with the image in the directory from where I am running the above cmd.

My application gets launched but the ImageIcon do not get displayed.

Can you please help me figure where I am goining wrong.

Thanks in Advance!
 
reply
    Bookmark Topic Watch Topic
  • New Topic