I have a Java script that functions correctly in Eclipse, but when I export it as an executable JAR and try to run it from the Command Prompt I get the following error:
java.sql.SQLException: No suitable driver found for
jdbc:sqlserver://[servername]:1433;databaseName=[databasename];user=[username]_sync;password=[password];
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at SFChecker_pack.SFChecker3.sql(SFChecker3.java:405)
at SFChecker_pack.SFChecker3.main(SFChecker3.java:137)
In Eclipse my Build Path incorporates mssql-jdbc-7.2.2.jre11.jar
What do I need to do to get this working from Command Prompt?