File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes jdbc and netbeans problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "jdbc and netbeans problem" Watch "jdbc and netbeans problem" New topic

jdbc and netbeans problem

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 595
I am using the netbeans IDE 3.5.1, I have wrote code to connect to an oracle database, when I use command line java the code works.
When I use the netbeans run command I get the following error:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver.
What is the best way to ensure that the IDE sees the file that contains the drivers.
Thanks for any help.
Billybob Marshall
Ranch Hand

Joined: Jan 27, 2004
Posts: 202
I don't use NetBeans myself, so can't tell you the steps. But surely you can play with the IDE and given enough time can figure out where your 'project properties' are set, part of which is the 'classpath' or 'required libraries'. Even if someone spoon-feeds you the answer, would you learn from it? It's best for you to figure it out so your expertise will grow.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Since this is much more about configuring Netbeans than it is about JDBC, I'm going to move this along to the IDEs Forum where it may have a better shot at being seen by the Netbeans-savvy.

[Asking smart questions] [About Bear] [Books by Bear]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Mount that zip file, just as you've mounted a directory or two as part of your project.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 595
I have sorted this problem out, just in acse anyone else has the same problem, what I did was to
Select Mount Filestream
Select Archive Files click bext and go to where your file is. or of you are using a java version 1.1
Cheers For all the help Tony
I agree. Here's the link:
subject: jdbc and netbeans problem
It's not a secret anymore!