Two Laptop Bag
The moose likes JDBC and Relational Databases and the fly likes JDBC: NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC: NullPointerException " Watch "JDBC: NullPointerException " New topic

JDBC: NullPointerException

Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
I have been facing the following error i.e.

could not load JDBC driver: java.lang.NullPointerException

while i try execute my below mentioned program on the explorer.
Please advise me what should I do.
Thanks in advance.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Chances are that the jar containing your JDBC drivers isn't somewhere that the SErvelt Engine can see it. this doesn't necessarily mean the CLASSPATH
Servlet engines ignore the CLASSPATH variable. It allows them to maintain boundaries between the code for different applications running on the same server instance. For example, you may need to put the jar in the [ TOMCAT HOME ]/server/lib directory if you want all applications to see it. Other servers will need other setup.
I agree. Here's the link:
subject: JDBC: NullPointerException
It's not a secret anymore!