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

D

Ding

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.
 
A

Andrew Thompson

<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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top