Your problem seems to occur at this point:
"SELECT COUNT(NAME) AS N1 FROM USERS"

You can perform your functionality as follow:
Statement st = con.createStatement(); // con is reference of type...