Here you can find the source of getOracleConn()
public static Connection getOracleConn()
//package com.java2s; //License from project: Open Source License import java.sql.Connection; import java.sql.DriverManager; import java.util.Properties; public class Main { static Properties pros = null; public static Connection getOracleConn() { try {/* ww w . ja va 2 s .com*/ Class.forName(pros.getProperty("oracleDriver")); return DriverManager.getConnection(pros.getProperty("oracleURL"), pros.getProperty("oracleUser"), pros.getProperty("oraclePwd")); } catch (Exception e) { e.printStackTrace(); return null; } } }