Newbie with NetBeans and Oracle

From: NotAsDumbAsILook (toyota_trekker_at_yahoo.com)
Date: 02/17/04


Date: 16 Feb 2004 16:38:44 -0800

Okay, so here's my issue:

I'm new to Java. I am learning with NetBeans. I've got the latest and
greatest downloaded and installed. It works fine. I've written a bunch
of little programs.

I downloaded and installed the Database Explorer Module. I then
downloaded the Oracle JDBC drivers (class12.zip, or whatever the name
was) and unzipped in the lib\ext directory. I can connect when I'm in
NetBeans' Explorer and click on Databases. I right-click on the
database that I set up and the little password window pops up, I log
on, and I can see all of my tables and play around with them using the
Command Editor. So, I'm happy up to this point.

Now, I'm trying to hook up to the database through my code. NetBeans
gives an error when it hits this line:

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

The error is:

dbTest.java [56:1] package oracle.jdbc.driver does not exist

How can NetBeans not see those files when they are in the lib\ext
folder? I tried mounting that folder as a filesystem, but that didn't
help. What stupid little thing have I neglected? Any ideas?

Thanks,
Kevin



Relevant Pages

  • HSQL 1.7.1/Netbeans JDBC not starting
    ... I am trying to use HSQL 1.7.1 within Netbeans 3.5.1, ... But this is just an "in memory" database... ... There is insufficient information to establish a connection to obtain ... If one cannot get past this one cannot manipulate the HSQL ...
    (comp.lang.java.databases)
  • Re: Java DB?
    ... to learn how to set up a database for a Java application and I know nothing about SQL or the Java DB. ... I don't want to have to learn how to use NetBeans just to be able to set up the database. ... If you don't know SQL at all, you're going to be hurting, and the bulk of that book is basic SQL commands. ... The page linked to above does use NetBeans, but only in the simplest way possible, so don't let that put you off. ...
    (comp.lang.java.help)
  • NetBeans & MySQL Flash Demo or Tutorial?
    ... I am looking a Flash Demo or a tutorial that can ... I had found many good flash animations on the NetBeans site ... but I haven't found any connecting to a MySQL database! ... the SWING interface to those middle/data tiers components. ...
    (comp.lang.java.programmer)
  • Re: [JSP] Connecting to a MySQL database
    ... Yann Laviolette wrote: ... When I use NetBeans to connect to the ... > database all works. ... But I don't know how to do a connection in Java ...
    (comp.lang.java.databases)
  • Project folder I use
    ... The IDE creates the NetBeans_projects/MyLib folder on ... The MyLib project opens in both the Projects window and the Files ... and then I use Netbeans to compile and run the programs. ... What are you using as the Project Location? ...
    (comp.lang.java.help)