Can not make a peer in Hyperledger Fabric

0 votes

I am trying to make a peer using make peer command but when I run this, I am getting the following error:

update-java-alternatives: directory does not exist: /usr/lib/jvm/java-1.8.0-openjdk-amd64
The command '/bin/sh -c core/chaincode/shim/java/javabuild.sh' returned a non-zero code: 1
Makefile:217: recipe for target 'build/image/javaenv/.dummy' failed
make: *** [build/image/javaenv/.dummy] Error 1

How to solve this?

Nov 22, 2018 in Blockchain by digger
• 27,620 points
33 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You have not installed jdk on your system. You can install it using this:

sudo apt-get install default-jdk-headless

answered Nov 22, 2018 by Omkar
• 67,000 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer

How to join a peer to a channel in Hyperledger Fabric?

When you run the command: peer channel create ...READ MORE

answered Jul 31, 2018 in Blockchain by digger
• 27,620 points
219 views
0 votes
1 answer

Can we set a list of discovery nodes in Hyperledger fabric?

New nodes doesn't depend on a single ...READ MORE

answered Sep 19, 2018 in Blockchain by Christine
• 15,790 points
23 views
+4 votes
2 answers

How do I create a new block in Hyperledger Fabric?

This link might help you: https://github.com/hyperledger/fabric-sample ...READ MORE

answered Oct 11, 2018 in Blockchain by Sahu
381 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 27,620 points
52 views
+1 vote
1 answer

Hyperledger network roles assigned to peer nodes.

In a hyperledger fabric network transactions are ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
226 views
0 votes
1 answer

Hyperledger Fabric: Kafka can not establish a connection

Try this:  kafka1.hyperfabric.xyz: image: hyperledger/fabric-kafka restart: ...READ MORE

answered Nov 9, 2018 in Blockchain by Omkar
• 67,000 points
270 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.