Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Invoking OCI REST API from Java — Cloud Customer Connect
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

Invoking OCI REST API from Java

Question
1
Views
0
Comments

Summary:

Unable to invoke OCI REST API from Java

Content (required):

I am trying to run

https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/RawRestCallExample.java

It is compiling with the following jar files in the class path

oci-java-sdk-common-3.0.0-beta1.jar

oci-java-sdk-common-httpclient-3.0.0-beta1.jar

jakarta.ws.rs-api-2.1.6.jar

But it is giving lot of other runtime error saying dependent classes are not there. Which all jar files I should add to make this work. I did lot to trial and error without success

Version (include the version you are using, if applicable):

My java version is - java version "15" 2020-09-15

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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