This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41042
    
  43
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Accessing Jar file
 
Similar Threads
placing jar files in tomcat
Applet jdbc
Applet in web application (WAR)
mock exam doubt
Where should I put the applet?