I have an applet and start some process on Windows from applet. When I start this process just from another code(test), this code works fine and process runs from rt.exec() to proc.destroy(). When I use html call for applet - process runs only for 5 seconds every time (!!!) and then just alive, doesn't work, to proc.destroy(). This is really interesting for me (newbie in applets). I think, this issue caused by AccessController. Help me please to solve this (run process normally for longer than 5 seconds) ! Thanks in advance.
P.S. I use Windows, medium Java security lever and applet is self-signed. It asks me to 'allow', applet works.
Here's the code:
And stop method here
EDIT 1: It's FFMPEG process, which records desktop video and writes it to file, maybe AccessController blocks access to file system.
Joined: Feb 23, 2014
If I start process via Windows Command Prompt, my process keeps alive and running