We've built a simple console application that demonstrates how LaunchDarkly's SDK works. Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page.
- Make sure you have Maven installed. We've tested against Maven 3
- Create a new project
- Copy your SDK key and feature flag key from your LaunchDarkly dashboard into
main
- Run
mvn clean compile assembly:single
- Then run
java -jar target/hello-java-1.0-SNAPSHOT-jar-with-dependencies.jar