Advertisements
Hello,
I'm trying to use JDBC to use NetBeans and SQLExpress.
I find all kind of tutorials but they sometimes seems contradictory.
The package I download include 'sqljdbc.jar' and 'sqljdbc4.jar'
When I add one of them to the CLASSPATH (in NetBeans Tools > Librairies > Classpath).
And in my project's references: (in NetBeans: Projects > MyPorjects > Libraries > 'right click' > Properties > Add JAR/Folder > (select my file),
both lines
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
or
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
give me ClassNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver.
I've also noticed that I can write
import com.microsoft.sqlserver.jdbc.SQLServerDriver;
but not
import com.microsoft.jdbc.sqlserver.SQLServerDriver;
This may be importa since ...
Go to the complete details ...
Found interesting? Add this to: