Re: JAR file which needs to call another jar file....



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 .



Relevant Pages

  • Re: Setting a variable (NDEBUG) during compilation of a JDK 1.1 applet
    ... Thomas Hawtin wrote: ... On average around five security bugs, of various degrees of severity, are found in Java Standard Edition each year. ... From an applet, applet parameters would be appropriate. ... are you referring to a method of debugging that involves the ide in some way that you can do with other languages / ides etc that you cant with java. ...
    (comp.lang.java.programmer)
  • Re: Applet driving me nuts
    ... browser to 'full-screen' before they took effect, ... Can anyone else clarify? ... I tried testing it with Java off, but the Applet ...
    (comp.lang.java.programmer)
  • RE: Reading certs from cert store
    ... Sorry let me clarify, the applet is NOT silent. ... It requires user interaction, ...
    (microsoft.public.scripting.vbscript)
  • Re: Offtopic: Looking for web live chat software.
    ... But I need clarify the features... ... I want a website solution like php, applet, etc.. ...
    (borland.public.delphi.thirdpartytools.general)