I am getting the following error
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at demo.security.LoginController.validateusernamepassword(LoginController.java:27)
at demo.security.LoginController.main(LoginController.java:13)
when i run my code.
The funny thing is it works perfectly when the system library is pointed to Jre7. if i point it Jdk or jre it gives the error.
The problem now is i have a piece of
java fx code that needs jdk and i need to call this class. any idea what is the issue