Here you can find the source of getJDBCConnection()
public static Connection getJDBCConnection()
//package com.java2s; import java.sql.Connection; import java.sql.DriverManager; public class Main { public static Connection getJDBCConnection() { try {/* w ww . java2 s .c om*/ Connection conn = null; Class.forName("oracle.jdbc.driver.OracleDriver"); conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "dms", "dms"); return conn; } catch (Exception e) { e.printStackTrace(); return null; } } }