Thread: Java Applet Security Policy

Results 1 to 4 of 4
  1. #1 Java Applet Security Policy 
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    Hey,

    I did try a google search of this but it was only for local applets etc. not web based applets.

    So basically I am integrating my webclient with my client via Javascript capabilities.

    "document.runescape.stopSong();"

    etc. etc.

    Except when I try to start the song again it tells me I have no File Permissions to the specific file.

    I looked into the security policy and java gave me something like this:

    Code:
    grant {   
    permission java.io.FilePermission  	"${user.home}/474Cache/mp3/song.mp3", "read,write"; 
    };
    Does anyone have a way to access this security policy from a web applet.

    Thanks.
    Reply With Quote  
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    chmod the file via client when it has been downloaded(?)

    Attached image

    Reply With Quote  
     

  3. #3  
    Registered Member
    .Dan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    873
    Thanks given
    54
    Thanks received
    115
    Rep Power
    494
    Quote Originally Posted by S Quare Quxx View Post
    chmod the file via client when it has been downloaded(?)
    To CHMOD the localfile via client would be a good idea. Try that.

    EDIT: On Win7 I think some problems might appear.
    Reply With Quote  
     

  4. #4  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    Nono you're missing the point, the applet has to have permission by the security policy. This is disabled by default and you have to grant permissions individually, it isn't a problem from the applet itself but from HTML -> Javascript -> Applet -> Remote File it is a problem.

    I can stop the song etc. etc. I might make a work around where I pause the song and replay from the start when play is clicked instead of creating a new instance every time.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •