Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web3j new helloworld Fails #61

Open
thedarkknight197 opened this issue Feb 8, 2022 · 8 comments
Open

web3j new helloworld Fails #61

thedarkknight197 opened this issue Feb 8, 2022 · 8 comments

Comments

@thedarkknight197
Copy link

Hello i have a problem with web3j.

I have installed it from here: https://docs.web3j.io/4.8.7/command_line_tools/ but when I run
the command in title it will return me:

by Web3Labs
[ \ ] Creating and building project ... Subsequent builds will be faster
Project generation Failed. Check log file for more information.

in log:

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 258ms

I am using M1 pro MacBook 16

@gtebrean
Copy link
Contributor

hi @thedarkknight197, this project uses this node plugin in order to resolve some solidity contract dependencies. Unfortunately the plugin has this issue specific to M1 processors. I see that they are working on it, but don't know when will finish.
I also have the same issue on my M1 pro.

@gtebrean
Copy link
Contributor

gtebrean commented Apr 1, 2022

@thedarkknight197 could you please paste here the command that you are trying to run? now for me is working and I have the same specs.

@thedarkknight197
Copy link
Author

@gtebrean to me is already broke. MacBook Pro 16" M1 Pro:

web3j new _ _____ _ | | |____ (_) __ _____| |__ / /_ \ \ /\ / / _ \ '_ \ \ \ | \ V V / __/ |_) |.___/ / | \_/\_/ \___|_.__/ \____/| | _/ | |__/ by Web3Labs [ / ] Creating and building project ... Subsequent builds will be faster Project generation Failed. Check log file for more information.

@thedarkknight197
Copy link
Author

I have installed now on my new MacBook.
This is the log file:
`cat logs

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 407ms`

@thedarkknight197
Copy link
Author

@thedarkknight197 could you please paste here the command that you are trying to run? now for me is working and I have the same specs.

it still not working...

@thedarkknight197
Copy link
Author

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':nodeSetup'.

Could not resolve all files for configuration ':detachedConfiguration3'.
Could not find org.nodejs:node:12.18.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/nodejs/node/12.18.1/node-12.18.1.pom
- https://repo.maven.apache.org/maven2/org/nodejs/node/12.18.1/node-12.18.1-darwin-arm64.tar.gz
- https://jcenter.bintray.com/org/nodejs/node/12.18.1/node-12.18.1.pom
- https://jcenter.bintray.com/org/nodejs/node/12.18.1/node-12.18.1-darwin-arm64.tar.gz
- https://nodejs.org/dist/v12.18.1/node-v12.18.1-darwin-arm64.tar.gz
Required by:
project :

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

@gtebrean
Copy link
Contributor

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':nodeSetup'.

Could not resolve all files for configuration ':detachedConfiguration3'.
Could not find org.nodejs:node:12.18.1.
Searched in the following locations:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

please tell me your web3j -v output

@thedarkknight197
Copy link
Author

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':nodeSetup'.

Could not resolve all files for configuration ':detachedConfiguration3'.
Could not find org.nodejs:node:12.18.1.
Searched in the following locations:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

please tell me your web3j -v output

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants