Connect to my oracle 12c database with java in Eclipse
<p>Can someone please tell my what is wrong with my code I am trying to connect to my oracle 12c database, once this is confirm I can start manipulating data.</p>

<p>Here my code:</p>

<pre><code>package Testing2;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Connection;
import java.sql.DriverManager;

public class Table6 {

    public static void main(String[] args)throws SQLException {
        // TODO Auto-generated method stub

        try{
            Class.forName("oracle.jdbc.Driver.OracleDriver");
        }
        catch(java.lang.ClassNotFoundException e)
        {
            System.err.println("ClassNotFoundException:");
            System.err.println(e.getMessage());
        }

        Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:Orcl","hr","Victor");

        PreparedStatement statement = con.prepareStatement("select * from COUNTRIES WHERE COUNTRY_ID = 'AR'");

        ResultSet result = statement.executeQuery();

        while(result.next()){
            System.out.println("Current Date from Oracle : " + result.getString("current_day"));
        }
        System.out.println("done");
        System.out.println("done!");

    }

}
</code></pre>

<p>Here is my Stack Trace:</p>

<pre><code>Exception in thread "main" java.sql.SQLException: Invalid column name
    at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3965)
    at oracle.jdbc.driver.InsensitiveScrollableResultSet.findColumn(InsensitiveScrollableResultSet.java:299)
    at oracle.jdbc.driver.GeneratedResultSet.getString(GeneratedResultSet.java:1460)
    at Testing2.Table6.main(Table6.java:32)
</code></pre>