aspose file tools*
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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC: NullPointerException " Watch "JDBC: NullPointerException " New topic
Author

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.
Rashid
David O'Meara
Rancher

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.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC: NullPointerException
 
Similar Threads
A href command not working
Calling another servlet
Trouble connecting to MS Access via ODBC
reading data from jsp page to another jsp page using request.getParameter
Unable to execute insertion!