Re: Missing class definition

From: Ken Kast (web_at_kenkast.com)
Date: 05/21/04


Date: 21 May 2004 09:07:06 -0700

Chris, Andrew,

Thank's for your help. It clearly makes sense that I have to tell the
browser where to find classes not in the JRE. And I kludged together
a solution that works: I put the three external classes I need in a
jar (actually I put them plus my applet in the jar), and put the jar
plus the applet in the same directory. I just specified the jar in
the archive attribute; I assume it used codebase to find it. But if I
tried to point to the nu.com jar with an absolute URL (this is all on
my hard drive at the moment) it couldn't find it. I went googling and
could not find anything but shallow descriptions of how the archive
attribute is "parsed." Can one of you gents point to me to a spot
that will explain the interaction from a url perspective of code,
codebase and archive?

Thanks.

Ken



Relevant Pages

  • Re: problem: security using IDEs appletviewer
    ... You wrote "If you jar up your Applet, ... The applet is correctly jar'd along with the image ... public class ImageAppletBriefX extends Applet ... public void paint(Graphics display) ...
    (comp.lang.java.help)
  • Re: problem: security using IDEs appletviewer
    ... APPLET tag. ... The HTML above loads both the test1.jar and test2.jar and runs the class ... You have the image in a in a jar that has the name ... appletviewer will load all .jar files listed there. ...
    (comp.lang.java.help)
  • Re: problem: security using IDEs appletviewer
    ... You wrote "If you jar up your Applet, ... image file with; getImage.getResource ... The applet is correctly jar'd along with the image ...   private Image ioStream; ...
    (comp.lang.java.help)
  • Re: importing external package into applet..
    ... to specify your external jars.. ... they are not obtainable from the CODEBASE. ... other places using the CODEBASE attribute of the applet element. ... (no jar involved.. ...
    (comp.lang.java.help)
  • Re: problem: security using IDEs appletviewer
    ... You wrote "If you jar up your Applet, ... The applet is correctly jar'd along with the image ... public class ImageAppletBriefX extends Applet ... public void paint(Graphics display) ...
    (comp.lang.java.help)