• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read files inside a .jar of a remote server

 
Xavier Poves
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I�ve made an applet that accedes to some files of resources to manipulate them. I�ve created and signed the .jar of the applet.
When the files that I want to read are in my machine, everything works fine, the problem comes when the files are not in my machine and I have to accede using a path like �http://..../file_name�

I�ve also tried to create another jar file with the resources (resources.jar) and send it with the applet.jar, by typing the next tag in my html applet file:
<applet CODE="main.class" ARCHIVE=�applet.jar, resources.jar� �>
And then manipulate the files in the client machine, not in server.
In that case, how I indicate that where I want to accede is inside this resources.jar?

Thank you!
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same question more than once. It causes confusion and duplication of effort.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

the problem comes when the files are not in my machine


What problem is that?

This article has example code that shows how to access files that are in the jar files that constitute the applet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!