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.
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.
please post that exception(all lines..) here..
otherwise verify you added mssqlserver.jar and msutil.jar files in java class path..
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.
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..
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
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!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.