Error when generating typesafe wrapper from truffle file

Hello,

I have a truffle generated json file and I’m trying to generate a type-safe wrapper using the web3j (version 1.4.1) command line tool. I get the following error - can anyone help please? Thanks, Fuzz.

web3j generate truffle --javaTypes --truffle-json=./local/build/Hashedtimelock.json -o=~/tmp/wrappers -p="io.dasl.xinfin" 
              _      _____ _ 
             | |    |____ (_)
__      _____| |__      / /_ 
\ \ /\ / / _ \ '_ \     \ \ |
 \ V  V /  __/ |_) |.___/ / |
  \_/\_/ \___|_.__/ \____/| |
                         _/ |
                        |__/ 
by Web3Labs
Invalid project type. Expecting one of --solidityTypes or --javaTypes
1 Like

Hi Fuzz!

Sorry for the late reply. Can you check the CLI version with the command:

$ web3j version

Thanks

Hello Xavier!
Thank you for your help.
web3j version doesn’t work.
web3j --version does:

web3j --version
              _      _____ _ 
             | |    |____ (_)
__      _____| |__      / /_ 
\ \ /\ / / _ \ '_ \     \ \ |
 \ V  V /  __/ |_) |.___/ / |
  \_/\_/ \___|_.__/ \____/| |
                         _/ |
                        |__/ 
by Web3Labs
Version: 1.4.1
Build timestamp: 2021-02-16 20:28:33.742 UTC

I installed web3j afresh using the instructions here.

Best regards to you and the team,
Fuzz