Thread: Java question.

  1. #1
    Super Moderator
    Join Date
    Sep 2001

    Java question.

    Does anyone know how I can give an applet access to a user's files? I'm trying to make an online family-tree program that can seave files, etc. I was thinking cgi, and I was told about FindAPPLET but I have no idea what or where that is!

  2. #2
    Registered User
    Join Date
    Dec 2001
    I don't have an answer, but I actually thought it was built into Java's VM not to let applets have access to user files. They have many security restrictions on them, unlike Active X, which is notoriously unsecure, but able to access anything on your computer.

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    As far as I know, an Applet cannot access files on your disk.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Most browser security settings will not let an applet read/write files to a local system. If you're using an applet viewer on a local system might get away with it. Java applets were designed to be secure over internet (you don't want everyone to be able to write files to your computer) so you don't get much system access. Stand alone apps are free to do so though, but that probably won't help.

    I think CGI would be the way to do what you want to do.

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    The only way I managed this with Java is by using a servlet and uploading from the HTML File upload control.

    Of course you would need a servlet application server to do this, or as said before......use some other CGI (PERL, PHP, PYTHON, ColdFusion.....)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mats, the java answers
    By Jaqui in forum A Brief History of
    Replies: 1
    Last Post: 04-22-2008, 02:12 AM
  2. Java vs C to make an OS
    By WOP in forum Tech Board
    Replies: 59
    Last Post: 05-27-2007, 03:56 AM
  3. Windows GDI vs. Java Graphics
    By Perspective in forum Windows Programming
    Replies: 7
    Last Post: 05-07-2007, 10:05 AM
  4. How to use Java with C++
    By Arrow Mk 84 in forum C++ Programming
    Replies: 2
    Last Post: 02-27-2003, 04:12 PM
  5. A question for .. java!
    By McAuriel in forum A Brief History of
    Replies: 4
    Last Post: 12-01-2002, 11:16 AM