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 Accessing Jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Accessing Jar file" Watch "Accessing Jar file" New topic
Author

Accessing Jar file

Prakash Talla
Greenhorn

Joined: Feb 13, 2007
Posts: 2
Hi,
I have a jsp page(login.jsp) in the WEB-INF folder(test/WEB-INF) on the web server.
'login.jsp' has an applet in it(systemApplet). The jar file containing the class files for the applet is in the 'test' directory, 'test' is the root-context of my application.

'login.jsp' accesses some of the styles sheets from a different server(http server), but when I move the jar file to the http server and try to access the jar file, I am not able to do access.
The applet is still looking for the jar file in the 'test' directory.
Is there a way I can access the jar file placed on the http server?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41500
    
  53
Welcome to JavaRanch.

That's what the CODEBASE (and ARCHIVE) attributes of the APPLET tag are for.


Ping & DNS - my free Android networking tools app
Prakash Talla
Greenhorn

Joined: Feb 13, 2007
Posts: 2
Thanks a lot Ulf. It worked using the CODEBASE tag.

Surya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing Jar file