2011-06-27 14:16:38 +00:00
|
|
|
To get started, ensure you have the latest JDK installed, and download Maven from:
|
2011-03-07 10:17:10 +00:00
|
|
|
|
2011-06-27 14:16:38 +00:00
|
|
|
http://maven.apache.org/
|
|
|
|
|
|
|
|
Then run "mvn clean package" to compile the software. You can also run "mvn site:site" to generate a website with
|
|
|
|
useful information like JavaDocs. The outputs are under the target/ directory.
|
2011-03-07 10:17:10 +00:00
|
|
|
|
2013-07-30 11:14:24 +00:00
|
|
|
Alternatively, just import the project using your IDE. IntelliJ has Maven integration once you tell it where to
|
|
|
|
find your unzipped Maven install directory.
|
2013-04-09 13:19:02 +00:00
|
|
|
|
2012-05-31 08:26:07 +00:00
|
|
|
Now try running one of the example apps:
|
2011-03-07 10:17:10 +00:00
|
|
|
|
2012-05-31 08:26:07 +00:00
|
|
|
cd examples
|
2014-03-10 16:36:32 +00:00
|
|
|
mvn exec:java -Dexec.mainClass=com.google.bitcoin.examples.ForwardingService -Dexec.args="<insert a bitcoin address here>"
|
2011-03-07 10:17:10 +00:00
|
|
|
|
2012-02-13 19:48:26 +00:00
|
|
|
It will download the block chain and eventually print a Bitcoin address. If you send coins to it,
|
2014-03-10 16:36:32 +00:00
|
|
|
it will forward them on to the address you specified. Note that this example app does not use
|
|
|
|
checkpointing, so the initial chain sync will be pretty slow. You can make an app that starts up and
|
|
|
|
does the initial sync much faster by including a checkpoints file; see the documentation for
|
|
|
|
more info on this.
|
2011-06-27 14:16:38 +00:00
|
|
|
|
2013-04-09 13:19:02 +00:00
|
|
|
Now you are ready to follow the tutorial:
|
2012-01-12 00:04:14 +00:00
|
|
|
|
2014-05-30 13:47:13 +00:00
|
|
|
https://bitcoinj.github.io/getting-started
|
2013-07-30 11:14:24 +00:00
|
|
|
|