🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17484

URGENT: No images in deployed application

#17484
From: william.a.rawlings
Date: Tue, 03 Nov 1998 00:00
28 lines
1749 bytes
I have a Java APPLICATION (not Applet) that makes extensive use of images
(.gif files).  The development environment (JBuilder2 under Win95) has these
images in a subdirectory in the project file ie.
\JBuilder2\myprojects\project\images. The images are always referred to in
code by a relative path name like:

transparentImage1.setImageName("images/phoenix.gif");

The problem occurs on deployment (in this case to a Sun machine).  I use the
Deployment Wizard, and create the .jar file, move it to the Sun, unjar it.  On
the Sun, I have all the .class files in a package with an images subdirectory.

/mydir/myproject/images

The application is executed from mydir with the command java
myproject.myproject.

None of the images show up. I occasionally get a Java io exception stating:
"phoenix.gif not found". (Note that it doesn't say "images/phoenix.gif not
found".

Anybody have any idea what's going on?  I'm baffled.

Bill


-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <71n2tk$432$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <719m0g$njj$1@nnrp1.dejanews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,869331aecf3621e5
X-Google-Attributes: gidf74b3,public
From: william.a.rawlings@lmco.com
Subject: URGENT: No images in deployed application
Date: 1998/11/03
Message-ID: <71n2tk$432$1@nnrp1.dejanews.com>
X-Deja-AN: 407918788
References: <719m0g$njj$1@nnrp1.dejanews.com>
X-Http-Proxy: 1.0 x14.dejanews.com:80 (Squid/1.1.22) for client 192.91.146.34
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Tue Nov 03 14:11:00 1998 GMT
Newsgroups: borland.public.jbuilder.java.language
X-Http-User-Agent: Mozilla/4.03 [en] (Win95; U ;Nav)