Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old March 28th, 2008, 03:58 AM
geeta_ravikanti geeta_ravikanti is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 geeta_ravikanti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 11 sec
Reputation Power: 0
SQLException: No suitable driver found for jdbc:sqlserver

I am getting the problem with driver
I am working in Microsoft Sql 2005 server
I used the dirver in my program is "com.microsoft.sqlserver.jdbc.SQLServerDriver"
And i added jar file(sqljdbc.jar) realted to that in current working directory
I build the path also
but when i am going to execute my program this exception is coming

SQLException: No suitable driver found for jdbc:sqlserver

and its giving NullPointerException

How can I solve it
Can any one help in this

Reply With Quote
  #2  
Old April 1st, 2008, 03:18 AM
Annie79's Avatar
Annie79 Annie79 is offline
Meow Black Belt
Click here for more information
 
Join Date: Oct 2005
Location: Beaverton OR
Posts: 913 Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Annie79 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 46292 Folding Title: Beginner FolderFolding Points: 46292 Folding Title: Beginner FolderFolding Points: 46292 Folding Title: Beginner Folder
Time spent in forums: 4 Weeks 7 h 36 m 28 sec
Reputation Power: 433
Is the jar entry present in the CLASSPATH?

Note that having the directory in the CLASSPATH does not work for jars. You need to have an entry for the jar itself.

(Also requesting the moderator to move this thread to Java Help forum).
__________________

Reply With Quote
  #3  
Old April 1st, 2008, 03:48 AM
geeta_ravikanti geeta_ravikanti is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 2 geeta_ravikanti User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 11 sec
Reputation Power: 0
Sql Driver

Quote:
Originally Posted by Annie79
Is the jar entry present in the CLASSPATH?

Note that having the directory in the CLASSPATH does not work for jars. You need to have an entry for the jar itself.

(Also requesting the moderator to move this thread to Java Help forum).


ThnQs fro the reply
I exceuted my program previously only

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > SQLException: No suitable driver found for jdbc:sqlserver


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway