We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Connect to a cloud database on Oracle Cloud with ojdbc6, jdk1.7.0_80

Received Response
5
Views
2
Comments
edited Nov 2, 2020 3:00AM in Oracle Cloud Infrastructure - General 2 comments

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

 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!