Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:05:05+00:00 2026-05-26T18:05:05+00:00

I went into this understanding this would not work, but I am trying to

  • 0

I went into this understanding this would not work, but I am trying to find out why it does not work, and possibly a way to fix it.

Anyway, I tried using java.io.File objects in an applet, and as soon as I did, it gets an error… Anyyway, based purely on speculation I believe this problem exists (at least partially) because there are two filesystems everytime the Applet is run and the virtual machine cannot choose between the local computer’s filesystem and the servers… I also believe (based on the fact that my java got an error whenever I tried to import java.io.* that another contributor to the problem is that I am importing this thing. If I defined ‘File’ within the applet, and somehow specified the filesystem to use for the JVM, would that fix either or both of my problems? And if yes to either, how wouldI go about doing that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:05:06+00:00Added an answer on May 26, 2026 at 6:05 pm

    Java applets run in a "sandbox" – they don’t get access to the local filesystem (unless you sign them and jump through some hoops)

    Since applets execute on the "client" they don’t get confused between server and client filesystems – the server filesystem is completely inaccessible (other than as intermediated by some protocol such as FTP or HTTP).

    Oracle say

    If you tried to run the applet example, you undoubtedly saw errors when you clicked the Click Me button. This is because the Java 2 Platform security does not permit an applet to write to and read from files without explicit permission.

    An applet has no access to local system resources unless it is specifically granted the access.


    Update: Some clarification of the concepts:

    A "java ftp applet" is a Java applet that is some Java bytecode stored in a .jar file on a server where it can be served by a web-server like Apache or IIS to web-browsers like Internet Explorer, FireFox, Chrome, Safari etc.

    The usage goes like this

    • A web-browser on a personal computer loads a web page from a server using HTTP.
      • it sends an HTTP request
      • it receives an HTML response
    • As it parses and displays the HTML "page", the browser finds in it tags that refer to an applet
    • The web-browser uses HTTP to request from the server, the jar file for the applet.
    • The web-server returns a copy of the contents of the jar file.
    • The browser launches a Java Virtual Machine (JVM)
    • The browser hands the applet jar file contents to the JVM
    • The JVM on the personal computer (Not the server) runs the applet
    • The browser displays the applet and passes mouse clicks and keypresses back to the JVM.
    • The applet sends an FTP connect request to a server that runs an FTP daemon/service
    • The server responds.
    • The applet sends an FTP request for a file.
    • The server sends an FTP response containing the file.
    • The applet does something useful with that file.

    The applet is running in a personal computer, it is only allowed access to files on that computer if the applet is signed and is granted permission by that personal computer.

    If the personal computer separately was using a file-sharing protocol (e.g. NFS or SMB) that makes some directories on the server look like local directories on the personal computer (e.g. a drive mapping) – then local applications (such as a signed applet) might be allowed access to those files using regular ordinary plain file IO. This is probably not the case.

    The applet never has direct access to files on the server.

    The applet may communicate with services on the server by using network protocols (not regular file IO) Some of those services (such as HTTP and FTP based services) may allow the transfer of copies of the contents of files on the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just wrote this into my WebForms .aspx: <span id=GenerateChartButton runat=server></span> I went to
I went to download SharpZipLib assemblies but it looks like its not on SourceForge.
Okay, so recently I've been reading into ninject but I am having trouble understanding
I am trying to change the max_memory parameter so I went into my php.ini
First off, either A) I'm not investigating into this hard enough or B) I've
Actually, the exception message just says Socket exception, but I went into the source
I was watching this course online and it went into xml. We used XSLT
I ran into a horrifying bug when my app went live. It crashes in
I went through the example from apple MoviePlayer on iPhone Im trying to overlay
I went to http://www.asp.net/mvc/ to try to install ASP.NET MVC. I didn't know, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.