Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

image display in swing application  RSS feed

 
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:


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!