Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Reading Files

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get an applet, installed on a user's computer, to read a file from the user's computer when the applet is loaded within a browser (ie Netscape). Sun's webpage says that this can be done if The applet is installed on the local hard disk, in a directory on the CLASSPATH used by the program that you are using to run the applet (ie Netscape). This does not work for me when I try it. How do I do the CLASSPATH part and the file reading part within the applet (i was told it has to be done with some specific code). Thanks to all whom respond.
brian
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hiya Brian,
as far as I know (ive done a bit with applets and security, but not loads) the only way an applet loaded in a browser is ever going to have rights to the local disk is if you explicitly set it in java.policy to have read/wite/whatever permission.??
is this an intranet thing? if so why not edit all users java.policy to give your applet permission.
just an idea
mike b
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic