This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
subject: JDBC: NullPointerException
Similar Threads
Calling another servlet
Unable to execute insertion!
A href command not working
reading data from jsp page to another jsp page using request.getParameter
Trouble connecting to MS Access via ODBC