1

i am trying to developed a movie recorder application the application is work when i run this as a stand alone application ,but when i am trying to launch that in applet i am getting an error like "Cannot create the DataSink: java.lang.RuntimeException: No permission to write files from applets Failed to create a DataSink for the given output MediaLocator: file:C:\demoscreener\AppletReadingWriting\bin\1371630526760.mov" can anybody help on this.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
  • possible duplicate of [Java, console don't let my applet run because of a file](http://stackoverflow.com/questions/16096508/java-console-dont-let-my-applet-run-because-of-a-file) – Andrew Thompson Jun 19 '13 at 12:48
  • In addition to *that* the JMF installer showed options at start-up that asked WTE 'Allow Capture From Applet?' which defaults to `false`. There is a console for changing that option, but I am hazy on the details of where it is, though.. – Andrew Thompson Jun 19 '13 at 12:52
  • Did you find any solution ? – Ashwin Nirmale Aug 24 '20 at 12:02

1 Answers1

0

An applet will be allowed to interact with the user file system unless it is signed. So you must sign the applet. By signing the applet the security system allows you to interact with the local file system.

For more on how to sign refer http://www.oracle.com/technetwork/java/javase/tech/java-code-signing-1915323.html.

pundit
  • 322
  • 1
  • 7