Register / Login
Win a copy of
Java EE 8 High Performance
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Other Application Frameworks
Image doesnot get displayed in an Eclipse OSGi Project
posted 8 years ago
I have created an Eclipse OSGi project and in the code i am trying to a create a new ImageIcon using the following code
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!
Boost this thread!
Image formats allowed
Image inside jar file
Having issue accessing images inside jar