This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Applets and the fly likes applets inside a folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applets inside a folder" Watch "applets inside a folder" New topic
Author

applets inside a folder

John Mclain
Ranch Hand

Joined: Nov 04, 2007
Posts: 30
hello there,

i have number of applet class files inside a folder say classes/applets.
now these applet class files to be embedded in a jsp page, here classes is not the package name of applets,instead, it is simply a folder in which i want to put applets rather than in jar directly.
my problem is, if i jarred these class files along with folder like this



then what should i write in *Archieve* attribute of the applet tag to acces these file from jsp?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
The archive attribute contains the name of the file; so it would be "myjar.jar" in this case. But that's only going to work if the directory structure in the jar file mirrors the package hierarchy of the classes. For example, if the package name is "com.example.myapplet", then "com" must be a top-level directory in the jar file. It can't be inside of another directory (like "classes").
John Mclain
Ranch Hand

Joined: Nov 04, 2007
Posts: 30
thanks for your reply

regards
Ulf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applets inside a folder
 
jQuery in Action, 3rd edition