• Post Reply Bookmark Topic Watch Topic
  • New Topic

image display in swing application  RSS feed

rakesh kadulkar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

My all the images that are used in my game are in the same folder

where my jar file is present, so when i run my executable jar file

outside the reach of that folder than images does not get displayed

on my game, I mean when jar file is located inside the folder with

the images then images get displayed but if i move my jar file to

some other location then images doesn't get displayed.

I have included image inside my executable jar file but same

problem arises. I have attached the manifest file, source java file and

image also. The jar file also contains the image inside it. I have

not attached the whole game as it would have been difficult for you

to go through it. I have just given a part of it.

Manifest file:
Manifest-Version: 1.0
Created-By: 1.2 (Sun Microsystems Inc.)
Sealed: true
contentTypes: image/gif
Main-Class: test

Java source file:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!