Java Bindings for the AWS Common Runtime
This library is licensed under the Apache 2.0 License.
Requirements:
- Clang 3.9+ or GCC 4.4+
- cmake 3.1+
- Java: Any JDK8 or above, ensure JAVA_HOME is set
- Maven
Building:
- apt-get install cmake3 maven openjdk-8-jdk-headless -y
- git clone https://github.com/awslabs/aws-crt-java.git
- cd aws-crt-java
- mvn compile
Requirements:
- cmake 3.1
- ninja
- Java: Any JDK8 or above, ensure JAVA_HOME is set
- Maven
- brew install maven cmake3 (if you have homebrew installed, otherwise install these manually)
- git clone https://github.com/awslabs/aws-crt-java.git
- cd aws-crt-java
- mvn compile
Requirements:
- Visual Studio 2015 or above
- CMake 3.1
- Java: Any JDK8 or above, ensure JAVA_HOME is set
- Maven
- choco install maven (if you have chocolatey installed), otherwise install maven and the JDK manually
- git clone https://github.com/awslabs/aws-crt-java.git
- cd aws-crt-java
- mvn compile
NOTE: Make sure you run this from a VS Command Prompt or have run VCVARSALL.BAT in your current shell so CMake can find Visual Studio.
From the aws-crt-java directory:
mvn install
From maven: (https://search.maven.org/artifact/software.amazon.awssdk.crt/aws-crt/)
Many tests require custom arguments. These tests will be quietly skipped if their arguments are not set. Arguments can be passed like so:
mvn test -Dcertificate=path/to/cert -Dprivatekey=path/to/key ...
Many tests require that you have set up an AWS IoT Thing.
Full list of test arguments:
- endpoint: AWS IoT service endpoint hostname
- certificate: Path to the IoT thing certificate
- privatekey: Path to the IoT thing private key
- rootca: Path to the root certificate
- proxyhost: Hostname of proxy
- proxyport: Port of proxy
- NETWORK_TESTS_DISABLED: Set this if tests are running in a constrained environment where network access is not guaranteed/allowed.