Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with Oracle JDBC driver registering

560749Feb 8 2007 — edited Feb 8 2007
Hello,

I have got the following problem:

The statement DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
throws permanently the following error message: oracle can not be resolved to a type

Have anybody an idea?

Regards
Börtecin


import java.sql.*;

public class TryGridBagLayout extends JFrame implements WindowListener
{

private static final long serialVersionUID = 1L;


public TryGridBagLayout()
{
super("PNVE");
createGui();
}

public static void main(String[] args) throws SQLException
{

new TryGridBagLayout();

DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());

.
.

}

}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2007
Added on Feb 8 2007
8 comments
714 views