mvn -Dmaven.test.skip=true clean package
h3. Implementing your code to use SDK
-$ARVADOS_HOME/sdk/java/ArvadosSDKJavaExample.java
serves as a sample
-implementation using the SDK.
+* The following two sample programs serve as sample implementations using the SDK.
+$ARVADOS_HOME/sdk/java/ArvadosSDKJavaExample.java
is a simple program
+ that makes a few calls to API server.
+$ARVADOS_HOME/sdk/java/ArvadosSDKJavaExampleWithPrompt.java
can be
+ used to make calls to API server interactively.
-Please use this file to see how you would want use the SDK from your java program.
+Please use these implementations to see how you would want use the SDK from your java program.
Also, refer to $ARVADOS_HOME/arvados/sdk/java/src/test/java/org/arvados/sdk/java/ArvadosTest.java
for more sample API invocation examples.
-Below are the steps to compile and run this java program.
+Below are the steps to compile and run these java program.
-* ArvadosSDKJavaExample.java
creates an instance of Arvados SDK class and uses it to
+* These programs create an instance of Arvados SDK class and use it to
make various call
requests.
-* To compile ArvadosSDKJavaExample.java
+* To compile the examples
$ javac -cp $ARVADOS_HOME/sdk/java/target/arvados-sdk-1.0-jar-with-dependencies.jar \
-ArvadosSDKJavaExample.java
-This results in the generation of the ArvadosSDKJavaExample.class file
-in the same directory as the java file
+ArvadosSDKJavaExample*.java
+This results in the generation of the ArvadosSDKJavaExample*.class files
+in the same directory as the java files
$java -cp .:$ARVADOS_HOME/sdk/java/target/arvados-sdk-1.0-jar-with-dependencies.jar \ ArvadosSDKJavaExample
+$java -cp .:$ARVADOS_HOME/sdk/java/target/arvados-sdk-1.0-jar-with-dependencies.jar \ +ArvadosSDKJavaExampleWithPrompt