Article View: borland.public.jbuilder.java.language
Article #16391JAR Files and Image Resources
From: Tom Heagy
Date: Thu, 25 Feb 1999 00:00
Date: Thu, 25 Feb 1999 00:00
15 lines
1160 bytes
1160 bytes
I have an application that makes use of a number of .JPG and .GIF files. The application runs fine when running in either JBuilder or directly with the class files and the image files in their appropriate directories. My problem occurs when I package all the class and image files into a JAR file. I point the application to the JAR file and try to run it but it can't seem to find the image files. It DOES find the class files however! I've coded all the file names without using a drive letter (i.e. "\MyApp\Images\myimage.jpg"). I don't understand what I'm doing wrong. I'd greatly appreciate any insight. Thanks, -Tom
Technical Details
Message-ID:
<36D5C146.B5DB61AB@sciatl.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: f74b3,d1a8c2130c04de5a,start X-Google-Attributes: gidf74b3,public From: Tom Heagy <tom.heagy@sciatl.com> Subject: JAR Files and Image Resources Date: 1999/02/25 Message-ID: <36D5C146.B5DB61AB@sciatl.com> X-Deja-AN: 448458215 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language