javaoracle-databaseappletappletviewer

java.security.AccessControlException:


This may be old error but I am stuck here.

I created Java applet to access an Oracle database. I am going to put this applet in Local Network. My applet works fine in Eclipse and Netbeans but when I run through 'appletviewer' it goes at connection string and showing an error:

Error e java.security.AccessControlException: access denied (
    "java.util.PropertyPermission" "oracle.net.wallet_location" "read")

I already signed applet using this Oracle technique for Signed Applets.

I used the user of database who has full rights. Also when I run using policy file, it shows the same error.

How do I connect the applet to the database successfully?


The HTML used to load the applet is:

<applet
    code=tree.pacg.DrawApplet.class
    codebase=c:\tree\pacg
    archive=DrawApplet.jar,ojdbc14.jar
    height="800"
    width="1000"> 
</applet>

Solution

  • Its solved !!

    I signed the ojdbc14.jar file and it works !!

    also I create new policy file and gave it 'All' access permission then it also work through 'appletviewer'

    Thanks..Thank you sir..