JAVA JDBC ODBC DRIVER SQLMX
<p>I have an application that connect to mxsql(HP NON STOP DB) using ODBC DRIVER.
Below is the code :</p>

<pre><code> String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    String dbUrl = "jdbc:odbc:Smartvista";
    String dbUname = "*****";
    String dbPwd = "******";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(dbUrl, dbUname, dbPwd);
    String getQuery = "some query here";
    System.out.println(getQuery);
    Statement stmt = conn.createStatement();
</code></pre>

<p>the code was working fine some time ago but stop working recently throwing below error</p>

<pre><code>java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
</code></pre>

<p>I suspect the error is related with java version. Some post has suggest using ucanacess , however i am unable to implement same.</p>

<p>Please advise anyone</p>