To create a ResultSet you should to create a Statement or PrepapredStatement :
Create ResultSet with Statement
try {
Class.forName(driver);
Connection connection = DriverManager.getConnection(
"jdbc:somedb://localhost/databasename", "username", "pass...