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
|
2013-07-30 11:14:24 +00:00
|
|
|
mvn exec:java -Dexec.mainClass=com.google.bitcoin.examples.ForwardingService <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,
|
2013-07-30 11:14:24 +00:00
|
|
|
it will forward them on to the address you specified.
|
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
|
|
|
|
2013-07-30 11:14:24 +00:00
|
|
|
https://code.google.com/p/bitcoinj/wiki/GettingStarted
|
|
|
|
|