Skip to content

Commit

Permalink
Java shim build update in DEV mode
Browse files Browse the repository at this point in the history
    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 <satheesh.ceg@gmail.com>
  • Loading branch information
xspeedcruiser committed Sep 28, 2016
1 parent dd5cef6 commit 79589a5
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docs/Setup/JAVAChaincode.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}'
```
Expand Down

0 comments on commit 79589a5

Please sign in to comment.