Re: JAR file which needs to call another jar file....
- From: James Westby <jw2328@xxxxxxxxxx>
- Date: Mon, 30 Jan 2006 10:07:38 GMT
Thomas Hawtin wrote:
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
Thanks,
James .
- 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
- Re: JAR file which needs to call another jar file....
- From: Thomas Hawtin
- JAR file which needs to call another jar file....
- Prev by Date: Re: Confused about how packages work.
- Next by Date: Re: sorry .09 instead of .08
- Previous by thread: Re: JAR file which needs to call another jar file....
- Next by thread: applet talking to server (with ajax?)
- Index(es):
Relevant Pages
|