Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2005

Tip: Looking for answers? Try searching our database.

applets and multiple jar files

Thread view: 
Digital Puer - 30 Sep 2005 00:37 GMT
Hi, I am preparing an applet that will be placed in a jar
file. The problem is that the applet uses other jar files.
What is the best way to organize all the files for
downloading, and how should I write the <applet ...>
tags to handle this situation?

Specifically, if my class MyClass.class is placed in
MyJar.jar, and if MyClass uses JarFile1.jar and JarFile2.jar,
would the <applet> tag look like this:

<applet code="MyClass.class"
       archive="MyJar.jar JarFile1.jar JarFile2.jar"
       width=120 height=120>
</applet>
Andrew Thompson - 30 Sep 2005 02:44 GMT
> <applet code="MyClass.class"
>         archive="MyJar.jar JarFile1.jar JarFile2.jar"

  archive="MyJar.jar,JarFile1.jar,JarFile2.jar"

>         width=120 height=120>
> </applet>

HTH
Roedy Green - 30 Sep 2005 04:32 GMT
>Hi, I am preparing an applet that will be placed in a jar
>file. The problem is that the applet uses other jar files.
>What is the best way to organize all the files for
>downloading, and how should I write the <applet ...>
>tags to handle this situation?

Put the other jars is the Class-Path manifest of the master jar and
build an index to the other jars so that loader won't have to download
a jar unless in really needs it.  See http://mindprod.com/jar.exe.html

Alternatively, you must mention the jars in the archive tag. See
http://mindprod.com/jgloss/applet.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.