File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC: NullPointerException

 
Rashid Ali
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic