Java SDKs for Linux
The directory "/opt/aapm/sdk/java" includes the "aapm-sdk-1.0.0.jar" file, which is used by Java application developers. It is a thick jar file, encompassing all necessary components required for gRPC within it. The Java SDK is developed for a minimum version of 1.8.
At this point, a simple Java application will be described below using the command line, and incorporate the Java SDK into this application. (For using a Java IDE with Maven, refer to the Java SDK for Windows section) Firstly, let's create a folder named "test-sample" and copy the SDK jar from /opt/aapm/sdk/java to this location.
The classes used for Java applications and SDKs (Windows) have been detailed in the previous sections. To compile the application, a minimum Java version of 1.8 is required. The compilation process can be executed via the command line, as demonstrated below, resulting in the creation of Java binaries (.class files) within the generated build directory.
Let’s run the sample app: