File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Help with Bean problem in JSP
problem with MySQL driver
Second thread is blocked until the first thread commit the transaction, I can not understand why...
problem with MySQL driver
connecting to mysql, with java, on a mac