Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet with JDBC  RSS feed

 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
am beginner to servlet. i created dsn and table in access. and tried to connect that table from servlet. Am getting error in class.forName(sun.jdbc.odbc.JdbcOdbcDriver .it thrown classnotfoundexception. Why am getting this? what can i do for solve this?Please help me to solve this . its urgent.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"moon",

This is your last warning, please read carefully.

Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

thanks,
Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which JRE are you using for your container? The 'sun optional classes' are only available in the Sun JRE.
 
kavitha vasu
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to check what type of jre am using ? am using apache tomcat. Please tell me
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
typically "java -version" or "java -fullversion" should work, or "echo %JAVA_HOME%", maybe also "which java.exe"

It all depends, I guess. If you're using websphere or WSAD I'd say you're using the IBM JDK, not Sun.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!