From 9cb79da1dfd71a85490bfc59dafb661bd101d9db Mon Sep 17 00:00:00 2001 From: beckerdo Date: Mon, 9 Feb 2009 16:03:06 +0000 Subject: TUSCANY-2826 Sample READMEs have mistakes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@742589 13f79535-47bb-0310-9956-ffa450edef68 --- java/sca/samples/README | 20 ++++++++++---------- .../samples/implementation-java-calculator/README | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'java/sca/samples') diff --git a/java/sca/samples/README b/java/sca/samples/README index a120bb3abf..4ccefa3695 100644 --- a/java/sca/samples/README +++ b/java/sca/samples/README @@ -118,15 +118,15 @@ this is: on Windows -java -cp ..\..\lib\tuscany-sca-manifest.jar;target\ +java -cp ..\..\features\tuscany-sca-manifest.jar;target\ -for example : java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-calculator.jar calculator.CalculatorClient +for example : java -cp ..\..\features\tuscany-sca-manifest.jar;target\sample-calculator.jar calculator.CalculatorClient on *nix -java -cp ../../lib/tuscany-sca-manifest.jar:target/ +java -cp ../../features/tuscany-sca-manifest.jar:target/ -for example : java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-calculator.jar calculator.CalculatorClient +for example : java -cp ../../features/tuscany-sca-manifest.jar:target/sample-calculator.jar calculator.CalculatorClient You can use the compiled classes directly using @@ -137,15 +137,15 @@ The command line version of this is: on Windows -java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes +java -cp ..\..\features\tuscany-sca-manifest.jar;target\classes -for example : java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes calculator.CalculatorClient +for example : java -cp ..\..\features\tuscany-sca-manifest.jar;target\classes calculator.CalculatorClient on *nix -java -cp ../../lib/tuscany-sca-manifest.jar:target/classes +java -cp ../../features/tuscany-sca-manifest.jar:target/classes -for example : java -cp ../../lib/tuscany-sca-manifest.jar:target/classes calculator.CalculatorClient +for example : java -cp ../../features/tuscany-sca-manifest.jar:target/classes calculator.CalculatorClient The class specified on the command of course depends on which sample you want to run. In the examples we have used we are running the CalculatorClient from the calculator sample. @@ -218,8 +218,8 @@ In a new or existing workspace src/main/resources Configure the output folder to be calculator/target - Configure the build path to include all of the jars provided in - lib + Configure the build path to include the manifest jar tuscany-sca-manifiest.jar provided in + features If you select calculator.CalculatorClient.java and run as "Java Application" you should see 3 + 2=5.0 3 - 2=1.0 diff --git a/java/sca/samples/implementation-java-calculator/README b/java/sca/samples/implementation-java-calculator/README index 01e319798e..28eccbdebb 100644 --- a/java/sca/samples/implementation-java-calculator/README +++ b/java/sca/samples/implementation-java-calculator/README @@ -13,10 +13,10 @@ ant run OR if you don't have ant, on Windows do -java -jar ..\..\features\tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ..\..\features\configuration\ -ttl 0 target\implementation-java-calculator.jar +java -jar ..\..\features\tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ..\..\features\configuration\ -ttl 0 target\sample-implementation-java-calculator.jar and on *nix do -java -jar ../../features/tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ../../features/configuration/ -ttl 0 target/implementation-java-calculator.jar +java -jar ../../features/tuscany-sca-equinox-manifest.jar -composite Calculator.composite -config ../../features/configuration/ -ttl 0 target/sample-implementation-java-calculator.jar Sample Overview --------------- -- cgit v1.2.3