943,147 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1179
  • Java RSS
Feb 9th, 2010
0

classnotfound exception

Expand Post »
i m using netbeans for java program for jdbc connection.
i m getting classnotfound exception ,
i have also downloaded jdbc driver for ms sql server 2005 but driver doesnot contians msbase.jar mssqlserver.jar and msutil.jar files

Plz reply asap.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jayaj is offline Offline
3 posts
since Feb 2010
Feb 9th, 2010
0
Re: classnotfound exception
please post that exception(all lines..) here..

otherwise verify you added mssqlserver.jar and msutil.jar files in java class path..
Last edited by musthafa.aj; Feb 9th, 2010 at 7:13 am.
Reputation Points: 19
Solved Threads: 45
Posting Whiz
musthafa.aj is offline Offline
312 posts
since Nov 2009
Feb 9th, 2010
0

classnotfound exception

i m using netbeans for java program for jdbc connection.
i m getting classnotfound exception ,
i have also downloaded jdbc driver for ms sql server 2005 BUT driver doesnot contians msbase.jar mssqlserver.jar and msutil.jar files
ERROR:
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javaapplication2.Main.main(Main.java:25)
BUILD SUCCESSFUL (total time: 0 seconds)

Plz reply asap.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jayaj is offline Offline
3 posts
since Feb 2010
Feb 9th, 2010
0
Re: classnotfound exception
might be the class SQLServerDriver.class missed in
sqlserver.jar ...

you download jar which containing above class...

sometimes you downloaded lower version of jar..

so i recommend you to download latest version and add it class path and check it..

and reply back..
Reputation Points: 19
Solved Threads: 45
Posting Whiz
musthafa.aj is offline Offline
312 posts
since Nov 2009
Feb 9th, 2010
-1
Re: classnotfound exception
download this:
http://dev.mysql.com/downloads/connector/j/

move the jar in to where the compilation directory is or if your using netbeans right click on the open project go t libraries click add jar/folder and there you go

hope that helped
Reputation Points: 10
Solved Threads: 0
Newbie Poster
houlahan is offline Offline
23 posts
since Jul 2009
Feb 9th, 2010
0
Re: classnotfound exception
Click to Expand / Collapse  Quote originally posted by houlahan ...
download this:
http://dev.mysql.com/downloads/connector/j/

move the jar in to where the compilation directory is or if your using netbeans right click on the open project go t libraries click add jar/folder and there you go

hope that helped
Helpful if you work with MySQL, but not in case of jayaj who is using ms sql server 2005. READ CAREFULLY NEXT TIME!
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,649 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: a code about character uppercase
Next Thread in Java Forum Timeline: Help if You Can !





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC