Re: JAR file which needs to call another jar file....
- From: James Westby <jw2328@xxxxxxxxxx>
- Date: Mon, 30 Jan 2006 00:04:55 GMT
Thomas Hawtin wrote:
James Westby wrote:
A jar cannot access a jar within itself. I'm not sure how it works in applets, but in applications the second jar (physics.jar) needs to be outside the first (PinballGame.jar), but on it's classpath.
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?
I ask because I have come across this situation before (with an application) and I couldn't see a solution to the problem that I liked anywhere, it would be good to know whether this is possible.
Thanks,
James .
- Follow-Ups:
- Re: JAR file which needs to call another jar file....
- From: Thomas Hawtin
- 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
- JAR file which needs to call another jar file....
- Prev by Date: Re: sorry .09 instead of .08
- 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: Re: JAR file which needs to call another jar file....
- Index(es):
Relevant Pages
|
|