File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes problem in swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in swing" Watch "problem in swing" New topic

problem in swing

Bilal Ali
Ranch Hand

Joined: Jun 14, 2007
Posts: 66
I am having a problem with image in swing , we are developing a java swing application with oracle 9i as the back end database , I am using jbuilder 2005 for development , I have an image with name of logo.gif , and i am using the following code for adding this image in a label

I have kept this image at the root of my project , when I am working on jbuilder and running the project the image is displayed without any problems but when I try to make a .bat file for my project and than run that bat file the whole project runs successfully but the iamge is not displayed , my bat file is very simple and is follows:

set CLASSPATH=C:\Documents and Settings\abc\jbproject\SYMePClientModule\classes;C:\Documents and Settings\abc\jbproject\SYMePClientModule\oraFiles\classes12.jar;C:\Documents and Settings\abc\jbproject\SYMePClientModule\logo.gif;

javaw symepclientmodule.MainClass

as you might have gussed that SYMePClientModule is my root folder , can you please etll that what is the problem , i dont think that there may be some problem with my code because its displaying image perfectly while running from jbuilder , i think that i am doing some mistake in creating bat file , can you please suggest some solution to this problem.

Bilal Ali.
[ January 18, 2008: Message edited by: Bilal Ali ]
I agree. Here's the link:
subject: problem in swing
It's not a secret anymore!