Results 1 to 2 of 2
  1. #1
    shibajisanyal is offline Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default applet problem plz HELP

    Hi all,



    I have a problem when I am trying to run a jar file from an applet. The jar is for remote desktop application. Jrdp.jar.

    And the Exception is……….



    Exception in thread "Thread-6" java.security.AccessControlException: access denied (java.util.PropertyPermission gnu.posixly_correct read)

    at java.security.AccessControlContext.checkPermission (Unknown Source)

    at java.security.AccessController.checkPermission(Unk nown Source)

    at java.lang.SecurityManager.checkPermission(Unknown Source)

    at java.lang.SecurityManager.checkPropertyAccess(Unkn own Source)

    at java.lang.System.getProperty(Unknown Source)

    at gnu.getopt.Getopt.<init>(Getopt.java:617)

    at gnu.getopt.Getopt.<init>(Getopt.java:581)

    at net.propero.rdp.Rdesktop.main(Rdesktop.java:290)

    at net.propero.rdp.applet.RdpThread.run(RdpApplet.jav a:190)




    can any one suggest me what I have to do???? Plz give your valuable suggestion in that matter. Should I have to do any thing in java.policy file. In that case what would be the syntax and what have allow. If possible plz help me out.



    Thanking you,

    With regards

    Shibaji Sabyal

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    shibajisanyal,

    Java Code:
    gnu.getopt.Getopt.<init>(Getopt.java:617)
    Getopt.java
    ...
    617   if (System.getProperty("gnu.posixly_correct", null) == null)
    618     posixly_correct = false;
    619   else
    Your code is trying to access system property thus java security is blocking it
    Atleast if you could sign your applet, Java will ask you if you trust the applet or not ..
    .. Following links might help you ..

    Chapter 10: Signed Applets
    keytool-Key and Certificate Management Tool
    dont worry newbie, we got you covered.

Similar Threads

  1. Serious applet problem
    By willemjav in forum Java Applets
    Replies: 1
    Last Post: 03-25-2008, 06:01 PM
  2. IMPORTANT: Applet Problem Please Help!
    By nvidia in forum Java Applets
    Replies: 1
    Last Post: 01-22-2008, 03:25 AM
  3. Problem Exporting a Jar as an Applet
    By Hank Ag99 in forum Eclipse
    Replies: 0
    Last Post: 12-22-2007, 10:22 PM
  4. Problem with run Java Applet
    By Albert in forum Java Applets
    Replies: 1
    Last Post: 07-13-2007, 04:06 PM
  5. Applet problem
    By Ed in forum Java Applets
    Replies: 2
    Last Post: 07-02-2007, 04:35 PM

Posting Permissions

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