File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes  access denied (java.util.PropertyPermission oracle.jserver.version read) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark " access denied (java.util.PropertyPermission oracle.jserver.version read) " Watch " access denied (java.util.PropertyPermission oracle.jserver.version read) " New topic

access denied (java.util.PropertyPermission oracle.jserver.version read)

mintu kumar

Joined: Apr 28, 2007
Posts: 10
hi all,
i have already connected my applet with excess database by signing applet with self signed certificate.
but i m getting following error when connecting to oracle database.

access denied (java.util.PropertyPermission oracle.jserver.version read)

can anyone solve my problem.

my applet code is:

import java.sql.*;

// Import the java classes used in applets
import java.awt.*;
import java.util.*;
/*<applet code="MyJdbcApplet.class" archive=ojdbc14.jar,MyJdbcApplet.jar width=300 height=400>
public class MyJdbcApplet extends java.applet.Applet

// The connect string
static final String connect_string =

static final String query = "select 'Hello JDBC: ' || sysdate from dual";

// The button to push for executing the query
Button execute_button;

// The place where to dump the query result
TextArea output;

// The connection to the database
Connection conn;

// Create the User Interface
public void init ()
this.setLayout (new BorderLayout ());
Panel p = new Panel ();
p.setLayout (new FlowLayout (FlowLayout.LEFT));
execute_button = new Button ("Hello JDBC");
p.add (execute_button);
this.add ("North", p);
output = new TextArea (10, 60);
this.add ("Center", output);

public boolean action (Event ev, Object arg)
if ( == execute_button)

if (conn == null)
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());

Connection con = DriverManager.getConnection
("jdbcracle:thin:@anant:1521:student", "scott", "tiger");

Statement stmt = conn.createStatement ();

output.appendText ("Executing query " + query + "\n");
ResultSet rset = stmt.executeQuery (query);
while ( ())
output.appendText (rset.getString (1) + "\n");

output.appendText ("done.\n");
catch (Exception e)
output.appendText (e.getMessage () + "\n");
return true;
return false;
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

I think this question is more about Applet configuration than JDBC so I'm moving it to our applets forum. If it winds up being more about JDBC, someone can move it back.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
mintu kumar

Joined: Apr 28, 2007
Posts: 10
anyone having knowledge about my problem.
please reply, its urgent.
I agree. Here's the link:
subject: access denied (java.util.PropertyPermission oracle.jserver.version read)
It's not a secret anymore!