X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fdbea9e3c225a3184f8f7c2fac52abde643603c6..922da69f42998b29355796e20e4dee0079d4113e:/doc/sdk/java/index.html.textile.liquid diff --git a/doc/sdk/java/index.html.textile.liquid b/doc/sdk/java/index.html.textile.liquid index f39d9c503e..11b1172399 100644 --- a/doc/sdk/java/index.html.textile.liquid +++ b/doc/sdk/java/index.html.textile.liquid @@ -54,34 +54,39 @@ $ 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
 
-* To run the sample +* To run the samples
 $ 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