JAVA JDBC ODBC DRIVER SQLMX -


i have application connect mxsql(hp non stop db) using odbc driver. below 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(); 

the code working fine time ago stop working throwing below error

java.lang.classnotfoundexception: sun.jdbc.odbc.jdbcodbcdriver     @ java.net.urlclassloader.findclass(unknown source)     @ java.lang.classloader.loadclass(unknown source) 

i suspect error related java version. post has suggest using ucanacess , unable implement same.

please advise anyone


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -