permaculture playing cards
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

I can't connect to DB

Ekrem Altintas

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:

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

Joined: Apr 14, 2004
Posts: 10336

Make sure your driver is in your classpath.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: I can't connect to DB
It's not a secret anymore!