# Re: JDBC Driver

Sharon Liu (Sharon.Liu@eng.sun.com)
Tue, 22 Jun 1999 09:14:39 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Ron McEwen: "JRE 1.2.2 and Netscape Object Signing - trusted signing certs don"
- Previous message: Yerli, Gursoy: "JDBC Driver"
- Maybe in reply to: Yerli, Gursoy: "JDBC Driver"

    Message-Id: <199906221617.JAA12019@shorter.eng.sun.com>

    Date: Tue, 22 Jun 1999 09:14:39 -0700 (PDT)

    From: Sharon Liu <Sharon.Liu@eng.sun.com>

    Subject: Re: JDBC Driver

    To: java-security@java.sun.com, gursoy.yerli@tmssc.brooks.af.mil

Gursoy,

The classes in sun.* packages aren't public APIs - they are private
to Sun and may be changed in the future. That's one of the reasons
that we don't recommend customers to use classes in sun.* packages
directly.

But if you do want to access classes in the sun.* packages, you need
to grant certain permissions to your program. In order to access classes
in the sun.jdbc.odbc package, the following permission is needed - you
can add the following into your java.policy:

grant codeBase "<codebase for your program>" {
permission java.lang.RuntimePermission "accessClassInPackage.sun.jdbc.odbc";
}
Let me know if you have more questions.

Thanks,
Sharon

> To: "'java-security@java.sun.com'" <java-security@java.sun.com>
> Subject: JDBC Driver
> MIME-Version: 1.0
>
> Hi,
>
> I've been trying to register sun.jdbc.odbc.JdbcOdbcDriver via
> class.ForName method. But I always get exception "access denied.
> (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)". I
> could nor figure it out anyway. Please help me. Thank you.
>
> Gursoy YERLI

- Next message: Ron McEwen: "JRE 1.2.2 and Netscape Object Signing - trusted signing certs don"
- Previous message: Yerli, Gursoy: "JDBC Driver"
- Maybe in reply to: Yerli, Gursoy: "JDBC Driver"