This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90802 - see my error in jave (aamir.java [19:1] package oracle.jdbc.driver does not (how set classpath in netbeans)
Summary: see my error in jave (aamir.java [19:1] package oracle.jdbc.driver does not (...
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-08 05:55 UTC by mfa
Modified: 2006-12-08 08:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mfa 2006-12-08 05:55:42 UTC
hi master
sir i am using oracle 9i and netbeans i have problem in connection 
sir see my class

import java.sql.*;

public class aamir {

public aamir() {

DriverManager.registerDriver 
(new oracle.jdbc.driver.OracleDriver()); --(error in this line) 

Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
// @machineName:port:SID, userid, password

Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
while (rset.next())
System.out.println (rset.getString(1)); // Print col 1
stmt.close();


}

}


and this error 

aamir.java [19:1] package oracle.jdbc.driver does not exist
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
^
1 error
Errors compiling aamir.


===========
some body give me idea you set your classpath 

sir how i set classpath in netbeans 

sir please give me idea how i connect the oracle with natbeans and how i set 
class path , enviromental variable




thank'k

aamir
Comment 1 Pavel Flaska 2006-12-08 08:54:07 UTC
Sir, use Libraries node in your project and add your driver jar to the
classpath. Not a bug, closing as INVALID.

Reporter, read http://www.netbeans.org/kb/index.html.