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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JDBC: NullPointerException