File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes How to mention multiple jars inside lib folder in archive of Applet tag... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to mention multiple jars inside lib folder in archive of Applet tag..." Watch "How to mention multiple jars inside lib folder in archive of Applet tag..." New topic
Author

How to mention multiple jars inside lib folder in archive of Applet tag...

Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

I am using several jars inside my lib folder. This is how my folders are arranged, WEB-INF\classes
\lib
\mytest.html

Inside the html

<APPLET codebase="classes" archive="../lib/jaxws-api.jar, swing-layout-1.0.jar" code="com/neto2/attest/psd/PSDApplet.class" width=850 height=350>
<PARAM name=pktFileName value="tc_conf_igs_dfg_001_153344.pkt"></PARAM>
<PARAM name=packetCreatedDate value="2007-11-22"></PARAM>
</APPLET></P>

My problem is in archive, how to mention all jars are one more jars inside lib?

Ananth


Ananth Chellathurai [Walk on software]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42951
    
  72
The archive attribute does not support wildcards - the browser can't know which jar files there are in a server directory. You need to list all files explicitly, separated by commas.
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Yes, I have mentioned all jars explicitly. But it doesnt see the second jar. The first jar is mentioned like ../lib/jaxws-api.jar so I dont have any issues. Whereas the second jar makes some problems, should I have to specify like ../lib/jaxws-api.jar, ../lib/swing-layout-1.0.jar.

Ananth
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Thanks Ulf.

I ve got it. I have mentioned all the jars in the archive like this ../lib/swing-layout-1.0.jar, ../lib/jaxws-api.jar, ../lib/jaxb-api.jar.

Thanks
Ananth
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to mention multiple jars inside lib folder in archive of Applet tag...