aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Read files inside a .jar of a remote server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Read files inside a .jar of a remote server" Watch "Read files inside a .jar of a remote server" New topic
Author

Read files inside a .jar of a remote server

Xavier Poves
Greenhorn

Joined: Jan 25, 2006
Posts: 2
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

Joined: Oct 29, 2001
Posts: 8263

Please don't post the same question more than once. It causes confusion and duplication of effort.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ulf Dittmer
Marshal

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


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Read files inside a .jar of a remote server
 
Similar Threads
Where should I put the applet?
Persistant Applets
Read files within a .jar
Including a jar file in an Applet
Proper location of external file for applet