0

I'm building this desktop application in java that reads input from Standard.in (or more specifically FileInputStream), I want to (or I am planning to) make it into a JApplet.

I'm not an expert when it comes to web-programming, so the question is, is it possible for a java applet to access local files? And better yet, can it execute system calls (i.e., Runtime.getRuntime().exec(...)) ?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
user1508893
  • 9,223
  • 14
  • 45
  • 57
  • *"I want to (or I am planning to) make it into a JApplet."* Why not a `JFrame` launched from a link? It will still need to be signed/trusted, but deployment is easier for you and the user experience is better. – Andrew Thompson Feb 22 '13 at 02:18
  • That's sort of what I originally thought(ie., just give the user the installer), but from my experience, people tend to do everything via the browser nowadays! – user1508893 Feb 22 '13 at 17:03

1 Answers1

1

An applet would need to be digitally signed by you and trusted by the end user when prompted, before it could access the local file-system or use exec to start a process.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433