aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "jdbc and netbeans problem" Watch "jdbc and netbeans problem" New topic
Author

jdbc and netbeans problem

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
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 classes12.zip file that contains the drivers.
Thanks for any help.
Tony
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
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Dirk Schreckmann
Sheriff

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: 556
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 classes12.zip file is. or classes111.zip of you are using a java version 1.1
Cheers For all the help Tony
 
 
subject: jdbc and netbeans problem
 
Similar Threads
Error when running a java program
Running Book Examples
Having Trouble Compiling
execute java .class file programmatically
java. lang. NoClassDefFound Error: org /aspectj/ lang/ Signature