This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AccessController Applets Issue

 
paul omk
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I start process via Windows Command Prompt, my process keeps alive and running
Like that


Help me please, THIS IS CRAZY ((((
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to handle the I/O streams, and generally follow the advice found in this article.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic