Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: problem with applet in jre6u45 asking permission

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default problem with applet in jre6u45 asking permission

    My question is about applet .I am trying to use JRE6u45 but its asking security permission and applet funtionality is not working properly but its working fine in JRE6u16 please help me how to run applet application in JRE6u45 and above version.
    I am trying to run applet application in JRE6u45 but its asking permission like not able to access local system file .when i added these permission in java policy file its working fine but my question is that how to update these all permission to all clients who ever will access this app .

    Error:"AccessControlException access denied("java.util.PropertyPermission""myProp""writ e")

    --- Update ---

    Please help me for above error


  2. #2
    Junior Member
    Join Date
    Feb 2014
    Location
    California
    Posts
    9
    My Mood
    Mellow
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: problem with applet in jre6u45 asking permission

    First of all, you may want to reconsider granting java.security.AllPermission to the world.
    That said, if you look in the JAVA_HOME/jre/lib directory you should see two files.

    In java.security there should be two lines that start with policy.url.1 and policy.url.2. They name the default policy files used by the JVM. Note: they must be specified as URLs, not Files. You can add more if you feel the need.

    The java.policy file in the jre/lib directory is the default policy and is the baseline for all users. Permissions are additive, so more lenient permissions may be specified in the individual user's home directory than in these system-wide files.

    Hope that helps and again, be careful about granting permissions too liberally.

Similar Threads

  1. A problem with Java 7 and a certain applet
    By Northpower98 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: July 25th, 2013, 02:11 AM
  2. Read Permission Problem -Access Denied
    By ocean1991 in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: December 28th, 2012, 10:38 AM
  3. JApplet Local File Permission
    By aussiemcgr in forum Java Theory & Questions
    Replies: 2
    Last Post: July 27th, 2011, 12:29 PM
  4. Replies: 1
    Last Post: April 21st, 2011, 09:59 AM
  5. Replies: 0
    Last Post: March 5th, 2010, 01:32 AM