aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "AccessController Applets Issue" Watch "AccessController Applets Issue" New topic
Author

AccessController Applets Issue

paul omk
Greenhorn

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
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
You need to handle the I/O streams, and generally follow the advice found in this article.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: AccessController Applets Issue