From 79589a59fa5c972ca72387901fa6835004d6cf8a Mon Sep 17 00:00:00 2001 From: Satheesh Kathamuthu Date: Wed, 28 Sep 2016 18:30:21 +0530 Subject: [PATCH] Java shim build update in DEV mode Modify build instruction for Java shim to reflect publishing shim-client.jar to local Maven repo FIX FAB-439 https://jira.hyperledger.org/browse/FAB-439 Change-Id: I2a2e87cad0fb7bc386f107e75389ffceafe3977c Signed-off-by: Satheesh Kathamuthu --- docs/Setup/JAVAChaincode.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/Setup/JAVAChaincode.md b/docs/Setup/JAVAChaincode.md index b62857b6140..519420126e7 100644 --- a/docs/Setup/JAVAChaincode.md +++ b/docs/Setup/JAVAChaincode.md @@ -74,15 +74,20 @@ Note: This guide generally assumes you have followed the Chaincode development e make peer peer node start --peer-chaincodedev ``` -3. Open the second Vagrant terminal, and change to Java shim root folder and run gradle build, +3. Open the second Vagrant terminal and build the Java shim layer and publish it to Local Maven Repo +``` +cd $GOPATH/src/github.com/hyperledger/fabric/core/chaincode/shim/java +gradle -b build.gradle clean +gradle -b build.gradle build +``` +4. Change to examples folder to build and run, ``` cd $GOPATH/src/github.com/hyperledger/fabric/examples/chaincode/java/SimpleSample gradle -b build.gradle build ``` -4. Run the SimpleSample chaincode using the `gradle -b build.gradle run` - -5. Open the third Vagrant terminal to run init and invoke on the chaincode +5. Run the SimpleSample chaincode using the `gradle -b build.gradle run` +6. Open the third Vagrant terminal to run init and invoke on the chaincode peer chaincode deploy -l java -n SimpleSample -c '{"Args": ["init", "a","100", "b", "200"]}' ```