Closed ghost closed 3 years ago
Hi @jehrenzweig,
The api-client
jar artifact is not an uber jar. The api-client
jar only includes the bytecode for the LaunchDarkly API client and not for any dependency types including org.threeten.bp.temporal.TemporalAccessor
.
If you are manually adding local jars to your classpath then you also need to manually add this artifact's dependencies (as well as potentially their dependencies too, and so forth).
Alternatively, we strongly recommend using a build tool like Maven or Gradle which would take care of dependency management in a more automated fashion.
Cheers, @bwoskow-ld
Great, thank you for the explanation.
I'm trying to instantiate the Java API client, as mentioned in the documentation:
When I call this, I get the following exception:
I'm referencing a local copy of the JAR file downloaded from Maven's repository ( https://search.maven.org/artifact/com.launchdarkly/api-client/6.0.0/jar ). Is it not possible to reference the Java API client in this fashion?