You need to include bitcoinj's dependencies as well (so-called transitive dependencies from your project's perspective). Typically you use Maven or Gradle in your project to manage dependencies so you don't need to do it manually.
On 04/19/2018 11:04 PM, Tyga wrote: > I just created a JAR file using a bitcoinj master branch, imported it in > my project, but when I run this file I got an exception called > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/google/common/base/Joiner > at org.bitcoinj.core.Utils.<clinit>(Utils.java:55) > at org.bitcoinj.core.NetworkParameters.<clinit>(NetworkParameters.java:52) > > i am just running this line > > import org.bitcoinj.core.NetworkParameters; > > public class Sample > { > public static void main(String args[]) > { > NetworkParameters parameters = NetworkParameters.testNet3(); > } > } > > This is my piece of code, i am using IntelliJIdea but i tried NetBeans as > well, i read and try multiple suggestion on the internet as well, but non of > them works for me > > Anybody have an idea how i can figure this out ? > > -- > You received this message because you are subscribed to the Google > Groups "bitcoinj" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to bitcoinj+unsubscr...@googlegroups.com > <mailto:bitcoinj+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.