Connect to a cloud database on Oracle Cloud with ojdbc6, jdk1.7.0_80
Content
I used the sample below to connect to a cloud database on Oracle Cloud. When I use ojdbc8, JDK 1.8 I am getting the response and when I switch to ojdbc6, JDK7 (jdk1.7.0_80), getting the error at OracleConnection.CONNECTION_PROPERTY_TNS_ADMIN (CONNECTION_PROPERTY_TNS_ADMIN cannot be resolved or is not a field). How can I connect with ojdbc6, jdk1.7.0_80.
https://github.com/oracle/oracle-db-examples/blob/master/java/jdbc/ConnectionSamples/DataSourceForJKS.java
Tagged:
0