Article View: borland.public.jbuilder.java.swing
Article #9119Image in a Jar
From: Alex Tavera V.
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
24 lines
1214 bytes
1214 bytes
Hi,
I have a java aplication in an executable jar file. I have the images and
properties in folders inside the JAR. I handle both, images and properties
as resources.
The problem I have is executing the JAR, it runs perfect but doesn't find
the resources.(images, property files).
When I include the images folders in the same working directory of my jar it
works.
Why my application can't find the resources inside the jar file?
What I have to do?.
Thanks in advance.
Alex
ex. myapp.jar
|
|--------- images
|------- icon.gif
|--------- properties
|------- app.properties
|-------- main.class
|-------- ....
Technical Details
Message-ID:
<8gm7o9$bfb4@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7859b3a34136cab0,start X-Google-Attributes: gid111d45,public From: "Alex Tavera V." <taveraa@ucbcba.edu.bo> Subject: Image in a Jar Date: 2000/05/26 Message-ID: <8gm7o9$bfb4@bornews.borland.com> X-Deja-AN: 627641319 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing