Title: BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: Anonymous on December 13, 2011, 10:15:24 PM Okay. When running my app that uses the bitcoinj jar file, I run into the following error: Code: Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory Code: package com.macintosh264.bitcoinproc; Code: BitcoinHandler bh = new BitcoinHandler(); And one last thing Code: File walletFile = FileLocationManager.bitcoinFile(walletName, "wallet"); Code: return new File("data/bitcoin/" + name + "." + extension); Thanks, macintosh264 Title: Re: [1 BTC Bounty] BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: ovidiusoft on December 13, 2011, 10:26:43 PM You are missing this: http://www.slf4j.org/ . The dependency is documented on the BitcoinJ wiki here: https://code.google.com/p/bitcoinj/wiki/GettingStarted .
Title: Re: [1 BTC Bounty] BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: Anonymous on December 13, 2011, 10:29:18 PM You are missing this: http://www.slf4j.org/ . The dependency is documented on the BitcoinJ wiki here: https://code.google.com/p/bitcoinj/wiki/GettingStarted . Thanks! (I didn't even see the wiki ;D)What's your address. Title: Re: [1 BTC Bounty] BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: Anonymous on December 13, 2011, 10:30:56 PM You are missing this: http://www.slf4j.org/ . The dependency is documented on the BitcoinJ wiki here: https://code.google.com/p/bitcoinj/wiki/GettingStarted . How do I add this to my eclipse project.Title: Re: BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: ovidiusoft on December 13, 2011, 10:34:35 PM PM'ed my address. I am sorry, I don't know Eclipse that well, I think there is a Maven plugin for it, but not much more.
Title: Re: BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: ovidiusoft on December 13, 2011, 10:36:46 PM I have received the bounty from OP. Thank you!
Title: Re: BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: Anonymous on December 13, 2011, 10:42:01 PM Okay, now one more problem.
org.bouncycastle.util.encoders.Hex is missing. Where do I get that? Title: Re: BitcoinJ Simple Error. java.lang.NoClassDefFoundError Post by: ovidiusoft on December 13, 2011, 10:52:56 PM I think it's here: http://www.bouncycastle.org/ . But you should probably use Maven to install any other dependencies.
|