Rob--
Check out URLClassLoader, and email me privately if you don't get it from
there. URLClassLoader allows you load classes, resources and other "stuff"
from .jar, .zip, or subdirectory (depending on the URL(s) you pass in, of
course) without modification to your client code.
Does that solve the issue?
Ted Neward
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward
"I don't even speak for myself; my wife won't let me." --Me
-----Original Message-----
From: Robert Simmons <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, October 18, 1999 4:36 AM
Subject: Jar file Access to images
>Greetings, I cross posted this to about 3 newsgroups and havent gotten a
>reply yet so I figured I would post here because i need it answered. So
dont
>flame me for posting a general question.
>
>I have an application that I intend to package as a jar, with its images in
>the Jar. How do I construct a URL object to load those images into
IconImage
>instances from the LOCAL jar file (ie, the file the program is running in.)
>Further, is there a generic way I can have it load from either the
>subdirectory, if the app is not run from a jar, such as when Im doing
>interim builds during programs, and from the jar in a distribution.
>
>- TIA
>-- Rob
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]