Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Latest commit

 

History

History

read-keys-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

This is a fully working example for how to use Elektra with Maven or Gradle for reading keys.

First Make sure to install the Elektra Java binding to your local maven repository:

cd ./src/bindings/jna
./gradlew publishLibelektraPublicationToMavenLocal

Alternatively change the libelektra dependency in build.gradle to a published version, fitting your Elektra installation. (See JNA binding for more information.)

Then change to the example app folder:

cd ../../../examples/external/java/read-keys-example

Use a local Gradle installation to run the example app:

gradle run

Alternatively use a local Maven installation to run the example app:

mvn compile exec:java