• 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 display in swing application

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:


 
reply
    Bookmark Topic Watch Topic
  • New Topic