Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class path for ms sqlserver database

 
Anil Jain
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded the jdbc driver for mssql 2000. I set the system classpath for these .jar files. But when I compiled my servlet, it gives me followig error:
cannot resove symbol Class Connection,DriverManager.
Please advise on this.
Thanks,
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll probably find this is a problem with the location of your JAR and not specfically JDBC-related.
Depending on the App-server you are using, you need to put the JAR somewhere it can be seen by the web-app. Without going into the specifics (you can get the whole story if you do a search in this or the Servlet forums) web apps manage their own classpaths, they ignore the one you set on the system.
For example, if you are running tomcat, the easiest place to put it is the [ TOMCAT_HOME]/server/lib directory
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic