Skip to content

Looks like there was an error while trying to download web3j source #2165

Open
@noob-programmer1

Description

@noob-programmer1

Issue Description

I am trying to install and use Web3j CLI, but I am encountering multiple issues:
When running:
curl -L get.web3j.io | sh && source ~/.web3j/source.sh
I get the error:

Looks like there was an error while trying to download web3j
source: no such file or directory: /Users/Abhi/.web3j/source.sh

After manually downloading Web3j CLI and attempting to generate code using:

web3j generate solidity \
  -a contract/build/X.abi \
  -b contract/build/X.bin \
  -o contract/generated \
  -p com.example.contract

I receive the following error:

Exception in thread "main" java.lang.IllegalArgumentException: version must not be null
    at com.github.zafarkhaja.semver.Version$Validators.nonNullOrThrow(Version.java:1383)
    at com.github.zafarkhaja.semver.Version$Validators.nonNull(Version.java:1357)
    at com.github.zafarkhaja.semver.Version.parse(Version.java:410)

Issue Context

Web3j Version: 1.6.3
OS: macOS
Installation Attempted: Both automatic (curl) and manual
Expected Behavior: Web3j should install properly and allow code generation
Actual Behavior: Installation fails, and code generation throws an error

Would appreciate any guidance on resolving this. 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reviewissue/PR needs review from maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions