• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc and netbeans problem

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mount that zip file, just as you've mounted a directory or two as part of your project.
 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic