This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Marshal

Joined: Mar 22, 2005
Posts: 41574
    
  54
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").


Ping & DNS - my free Android networking tools app
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