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 13:14:24 +02: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 15:19:02 +02:00
|
|
|
|
2012-05-31 10:26:07 +02:00
|
|
|
Now try running one of the example apps:
|
2011-03-07 10:17:10 +00:00
|
|
|
|
2012-05-31 10:26:07 +02:00
|
|
|
cd examples
|
2014-03-10 17:36:32 +01: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 20:48:26 +01:00
|
|
|
It will download the block chain and eventually print a Bitcoin address. If you send coins to it,
|
2014-03-10 17:36:32 +01: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 15:19:02 +02:00
|
|
|
Now you are ready to follow the tutorial:
|
2012-01-11 16:04:14 -08:00
|
|
|
|
2013-07-30 13:14:24 +02:00
|
|
|
https://code.google.com/p/bitcoinj/wiki/GettingStarted
|
|
|
|
|