File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Accessing Jar file

Prakash Talla

Joined: Feb 13, 2007
Posts: 2
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

Joined: Mar 22, 2005
Posts: 41500
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

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

I agree. Here's the link:
subject: Accessing Jar file