Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic