java - error: cannot access Referenceable class file for javax.naming.Referenceable not found -


i'm having

error:(22, 15) error: cannot access referenceable class file javax.naming.referenceable not found in connection mssql using stored procedure , custom username , password 

code connection class:

class connectds {      boolean b = false;      void conn(string user, string pass) {         // declare jdbc objects.         connection con = null;         callablestatement cstmt = null;         resultset rs = null;         try {             // establish connection.             sqlserverdatasource ds = new sqlserverdatasource();             ds.setuser("sa");             ds.setpassword("123");             ds.setservername("localhost");             ds.setportnumber(1433);             ds.setdatabasename("db_diglib");             con = ds.getconnection();             // execute stored procedure returns data.             string db_user, db_pass, call = "{call [dbo].[usp_logininfo](" + user + "," + pass + ")}";             cstmt = con.preparecall(call);             rs = cstmt.executequery();             // iterate through data in result set , display it.             while (rs.next()) {                 db_user = rs.getstring("name");                 db_pass = rs.getstring("pass");                 b = objects.equals(db_pass, pass) && objects.equals(db_user, user);             }         }         // handle errors may have occurred.         catch (sqlexception e) {             e.printstacktrace();         } {             if (rs != null) try {                 rs.close();             } catch (sqlexception ignored) {             }         }         if (cstmt != null) try {             cstmt.close();         } catch (sqlexception ignored) {         }         if (con != null) try {             con.close();         } catch (sqlexception ignored) {         }     } } 


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -