无法定位corda-tools-network-builder.jar且下载文件损坏,求助Docker部署Corda节点
Fixing Corda Network Builder Jar Issues & Running Nodes in Docker
Hey, sorry to hear you're stuck with the Corda Network Builder jar problems—can't find corda-tools-network-builder.jar, and the one you downloaded got corrupted? Let's break down how to resolve this and get your Corda nodes up in Docker:
1. Get a Valid, Uncorrupted Jar File
The download issue you ran into is likely due to a partial transfer or cache glitch. Here's how to get a working copy:
- Skip the problematic CI artifactory link and grab the jar from Corda's official Maven repository or GitHub releases page for version 4.1.
- Always verify file integrity after downloading: Calculate the SHA-256 hash of the jar and compare it to the official checksum (listed alongside the download link). If they don't match, re-download—try a different network or use a download manager to avoid interruptions.
2. Build the Jar Yourself (Foolproof Alternative)
If direct downloads keep failing, build the tool from source using Gradle:
- Clone Corda's official repo and check out the 4.1 branch.
- Run this command from the root directory:
./gradlew :tools:network-builder:shadowJar - Once done, you'll find the executable jar (with all dependencies included) at
tools/network-builder/build/libs/corda-tools-network-builder-4.1-all.jar.
3. Run Corda Nodes in Docker Properly
Once you have the correct jar, follow these steps to set up and launch nodes:
- Generate node configurations with the Network Builder:
java -jar corda-tools-network-builder-4.1-all.jar -d . - Navigate to the generated directory and check the
docker-compose.ymlfile—make sure it has all the required services (Corda nodes, databases, etc.). - Start the containers with:
docker-compose up -d - Verify nodes are running by checking logs:
docker logs <your-corda-container-name>
Quick Tips
- Ensure your Docker version meets Corda 4.1's requirements (Docker 18.09+ is recommended).
- Stuck on Network Builder parameters? Run
java -jar corda-tools-network-builder-4.1-all.jar --helpto see all available options.
内容的提问来源于stack exchange,提问作者Rahul Desai
相关产品推荐
相关产品推荐

