Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / February 2004

Tip: Looking for answers? Try searching our database.

Newbie with NetBeans and Oracle

Thread view: 
NotAsDumbAsILook - 17 Feb 2004 00:38 GMT
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
Markku - 17 Feb 2004 06:21 GMT
> Okay, so here's my issue:
>
[quoted text clipped - 5 lines]
> 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

Java libraries (.jar or .zip) should not been unzipped, you just refer
them in the classpath and they are available.

> 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?

Mount the driver library (.zip) itself, not the folder.

-Markku-
NotAsDumbAsILook - 18 Feb 2004 00:58 GMT
Thanks! That worked like a charm! I can access my database and mess
around with the data.

I realized that I was mounting a "Local Directory" rather than
"Archive Files" and that's why I was getting confused with everything
and thinking that I needed to unzip the jdbc drivers. Someday I'll
figure this Java out!

> > Okay, so here's my issue:
> >
[quoted text clipped - 16 lines]
>
> -Markku-


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.