🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11466

Re: Extracting images for Jar file in Netscape...(Urgent)

#11466
From: Dion Gillard
Date: Sun, 23 May 1999 00:00
21 lines
1479 bytes
[This followup was posted to borland.public.jbuilder.java.swing and a 
copy was sent to the cited author.]

In article <7i6q7v$lr813@forums.borland.com>, kshakir@prosys.com.pk 
says...
|  
|  I  am trying to extract images from jar file with the use of following code
|  someClass that is on the jar,
|  
|  URL url = this.getClass().getResouce("images/myImage.gif");
|  return new ImageIcon(url);
|  
|  this code work fine with appletviewer and Internet Explorer, but not in
|  Netscape Navigator 4.51. the url return null. Is this a bug in Netscape,
|  please help me, or give me other method for extracting image form Jar file.
|  I need answer immidiatly, since my project deadline is May 27 :(
|  thanks in advance
Go search on Netscape's site and you'll find out that NS only supports 
getResourceAsStream, not getResource.

dIon
Technical Details
Message-ID: <MPG.11b27ee2a61bf32498968b@news.ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7i6q7v$lr813@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,da674f7a28ca9c32
X-Google-Attributes: gid111d45,public
From: dion@multitask.com.au (Dion Gillard)
Subject: Re: Extracting images for Jar file in Netscape...(Urgent)
Date: 1999/05/23
Message-ID: <MPG.11b27ee2a61bf32498968b@news.ozemail.com.au>
X-Deja-AN: 481133418
Distribution: world
References: <7i6q7v$lr813@forums.borland.com>
X-Trace: ozemail.com.au 927456219 203.108.100.98 (Sun, 23 May 1999 20:43:39 EST)
Organization: Multitask Consulting
NNTP-Posting-Date: Sun, 23 May 1999 20:43:39 EST
Newsgroups: borland.public.jbuilder.java.swing