• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Read files inside a .jar of a remote server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please don't post the same question more than once. It causes confusion and duplication of effort.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic