Re: JAR file which needs to call another jar file....
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 00:50:15 +0000
James Westby wrote:
Thomas Hawtin wrote:
You can open the jar inside as a resource, but you wouldn't be able to load classes from it (as an applet).
Thanks for pointing this out. Could you clarify the comment "as an applet" for me please? Do you Mean that an applet could not be created from them, or that they cannot be loaded when you are operating as an applet? If it is the latter then how is it possible as an application? Does it require a different classloader to be used?
Yeah. Copy the data out of the resource and create a custom ClassLoader that uses that data.
Applets cannot create class-loaders (unless they are signed). However, they can read the data fine.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- Follow-Ups:
- Re: JAR file which needs to call another jar file....
- From: James Westby
- Re: JAR file which needs to call another jar file....
- References:
- JAR file which needs to call another jar file....
- From: gooderthanyou
- Re: JAR file which needs to call another jar file....
- From: James Westby
- Re: JAR file which needs to call another jar file....
- From: Thomas Hawtin
- Re: JAR file which needs to call another jar file....
- From: James Westby
- JAR file which needs to call another jar file....
- Prev by Date: Re: sorry .09 instead of .08
- Next by Date: Re: some help required : applets blinded
- Previous by thread: Re: JAR file which needs to call another jar file....
- Next by thread: Re: JAR file which needs to call another jar file....
- Index(es):
Relevant Pages
|