Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes JDBC: NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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.
wood burning stoves
subject: JDBC: NullPointerException
Similar Threads
Trouble connecting to MS Access via ODBC
reading data from jsp page to another jsp page using request.getParameter
Calling another servlet
Unable to execute insertion!
A href command not working