Jar 2 « Development « Java Swing Q&A





1. How to set CLASSPATH for library jar files to my Swing Application    forums.oracle.com

in Command prombt i am running the jar file using the following command.. java -classpath .;lib\sqljdbc.jar;lib\mssqlserver.jar;lib\msbase.jar;lib\msutil.jar -jar VerifiConnect.jar when i run the jar file i am getting the following exception. But when i run this application in my Netbeans it is working fine. I am facing the problem in Classpath setting. Database Connection Error.... java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native ...