How do I write HTML tags for an applet that imports classes from another jar in another package?

Discussion in 'Java' started by Ding, Jun 30, 2004.

  1. Ding

    Ding Guest

    What I did was like this:

    <applet name="MyApplet" code="com.ding.MyApplet.class"
    codebase="./dev/main/bld" archive="applets.jar"
    codebase="./dev/main/lib" archive="comm.jar"
    width="10%" height="10%" mayscript>
    </applet>

    I imported some classes in comm.jar to MyApplet, but they are not in
    the same path as MyApplet, so the applet could not be inited because
    it can't find the classes in comm.jar. If I copy comm.jar to bld
    directory and include the jar file in archive, it'll find it. But they
    shouldn't be in the same directory. What should I do? Please help.
     
    Ding, Jun 30, 2004
    #1
    1. Advertising

  2. On 30 Jun 2004 12:28:07 -0700, Ding wrote:

    > <applet name="MyApplet" code="com.ding.MyApplet.class"
    > codebase="./dev/main/" archive="./bld/applets.jar,./lib/comm.jar"
    > width="10%" height="10%" mayscript>
    > </applet>


    HTH

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology
     
    Andrew Thompson, Jul 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. puzzlecracker
    Replies:
    2
    Views:
    5,133
    Jean-Francois Briere
    Dec 20, 2005
  2. David Pratt
    Replies:
    4
    Views:
    335
    David Pratt
    May 13, 2006
  3. Albert
    Replies:
    4
    Views:
    10,889
    Albert
    Jul 10, 2008
  4. zildjohn01
    Replies:
    0
    Views:
    653
    zildjohn01
    Feb 22, 2011
  5. Victor Hooi
    Replies:
    1
    Views:
    108
    Devin Jeanpierre
    Nov 25, 2013
Loading...

Share This Page