hyperledger-web3j / web3j

Lightweight Java and Android library for integration with Ethereum clients
https://www.web3labs.com/web3j-sdk
Other
5.12k stars 1.69k forks source link

Besu class not found in web3j-core.jar #1398

Closed rampatra closed 3 years ago

rampatra commented 3 years ago
Screenshot 2021-04-07 at 20 44 06

I am using web3j (v4.8.4) in my maven project and these classes (marked in red) aren't found in the jar. Any ideas?

mohamedelshami commented 3 years ago

It looks like web3j-besu module is not included in maven depedency.

org.web3j besu 4.8.4
rampatra commented 3 years ago

Yes, I have included all three now and it's working:

<dependencies>
        <dependency>
            <groupId>org.web3j</groupId>
            <artifactId>core</artifactId>
            <version>4.8.4</version>
        </dependency>
        <dependency>
            <groupId>org.web3j</groupId>
            <artifactId>besu</artifactId>
            <version>4.8.4</version>
        </dependency>
        <dependency>
            <groupId>org.web3j</groupId>
            <artifactId>eea</artifactId>
            <version>4.8.4</version>
        </dependency>
    </dependencies>

I thought just adding the core dependency would include everything.