Article View: borland.public.jbuilder.java.language
Article #16973Re: getting images from a jar in an application/applet
From: Brian E Brooks
Date: Thu, 07 Jan 1999 00:00
Date: Thu, 07 Jan 1999 00:00
18 lines
1562 bytes
1562 bytes
ted19@hotmail.com wrote: > Ok...So JARs are great because they save you time in moving the applet code > around....but what if you want to use the same jar as an application? > I have a jar ajar.jar which has an applet, an application, and a bunch of > images in it. As an applet it's hunky-dory. As an application the images are > nowhere to be found (jre -cp ajar.jar MainClass) can't find the images. I > realized that the jar is on the CLASSPATH, not the PATH! I copied the JARred > images out of the jar and into the filesystem, and it works fine. Is there a > way of using jarred images in applications? > This has to be a common thing. Is there a pattern for handling this? What Java API functions are you using to load the images? --- Brian Brooks brian.brooks@acm.org
Technical Details
Message-ID:
<gN7l2.8799$V3.2549@news1.giganews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<76nk97$hr5$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 146a3d,40a4afbfce32ce3b
X-Google-Attributes: gid146a3d,public
X-Google-Thread: f74b3,40a4afbfce32ce3b
X-Google-Attributes: gidf74b3,public
From: Brian E Brooks <bbrooks@ravine.binary.net>
Subject: Re: getting images from a jar in an application/applet
Date: 1999/01/07
Message-ID: <gN7l2.8799$V3.2549@news1.giganews.com>
X-Deja-AN: 429898713
References: <76nk97$hr5$1@nnrp1.dejanews.com>
X-Trace: news1.giganews.com 915736780 12.13.120.8 (Thu, 07 Jan 1999 13:19:40 CDT)
User-Agent: tin/pre-1.4-980818 ("Laura") (UNIX) (FreeBSD/2.2.8-STABLE (i386))
NNTP-Posting-Date: Thu, 07 Jan 1999 13:19:40 CDT
Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.java.applet-issues