This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes I can't connect to DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I can Watch "I can New topic
Author

I can't connect to DB

Ekrem Altintas
Greenhorn

Joined: Dec 04, 2006
Posts: 5
Hi there,
I,m trying to connecting to sample database of NetBeans 6. But I'm getting an error on this line:
Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();

It says:

Method "forName" in class "java.lang.Class" threw an exception: instance of java.lang.ClassNotFoundException(id=349)

How can I solve this problem?

Thank you

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Make sure your driver is in your classpath.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I can't connect to DB
 
Similar Threads
connecting to mysql, with java, on a mac
problem with MySQL driver
Help with Bean problem in JSP
Second thread is blocked until the first thread commit the transaction, I can not understand why...
problem with MySQL driver