File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes AccessController Applets Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "AccessController Applets Issue" Watch "AccessController Applets Issue" New topic

AccessController Applets Issue

paul omk

Joined: Feb 23, 2014
Posts: 2
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.
paul omk

Joined: Feb 23, 2014
Posts: 2
If I start process via Windows Command Prompt, my process keeps alive and running
Like that

Help me please, THIS IS CRAZY ((((
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
You need to handle the I/O streams, and generally follow the advice found in this article.
I agree. Here's the link:
subject: AccessController Applets Issue
It's not a secret anymore!