aspose 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


Win a copy of Spring in Action this week in the Spring 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