java.lang.ClassNotFoundException

30 views
Skip to first unread message

Dolf

unread,
Aug 18, 2020, 5:52:47 AM8/18/20
to bitcoinj
I'm running into this error when running the forwarding example https://github.com/bitcoinj/bitcoinj/blob/master/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java

Caused by: java.lang.ClassNotFoundException: org.bitcoinj.core.NetworkParameters
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_251]

I am using maven to import the dependency, heres my pom.xml

<?xml version="1.0" encoding="UTF-8"?>
    <modelVersion>4.0.0</modelVersion>

    <groupId>cas</groupId>
    <artifactId>cas</artifactId>
    <version>1.0-SNAPSHOT</version>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
     

        <dependency>
            <groupId>org.bitcoinj</groupId>
            <artifactId>bitcoinj-core</artifactId>
            <version>0.15.8</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>29.0-jre</version>
            <scope>compile</scope>
        </dependency>


    </dependencies>


</project>

Does anyone have any solutions to this?


Reply all
Reply to author
Forward
0 new messages