A library for working with Bitcoin
Go to file
Kosta Korenkov 9680911bca Fix autosave in WalletTool on Windows
Wallet.saveToFile failed to remove original wallet file because WalletTool
left open input stream. This error happened on Windows-specific code path

Stacktrace:
```
Failed to save wallet! Old wallet should be left untouched.
java.io.IOException: Failed to delete canonical wallet file for
replacement with autosave
        at com.google.bitcoin.core.Wallet.saveToFile(Wallet.java:834)
	        at
		com.google.bitcoin.core.Wallet.saveToFile(Wallet.java:863)
		        at
			com.google.bitcoin.tools.WalletTool.saveWallet(WalletTool.java:851)
			        at
				com.google.bitcoin.tools.WalletTool.main(WalletTool.java:362)
```
2014-06-24 14:19:14 +02:00
core Remove some superfluous new String() calls around HEX.encode, now it has a sane API. 2014-06-24 14:11:09 +02:00
designdocs HD Wallets: implement auto upgrade behaviour and refresh the design doc. 2014-06-13 14:11:51 +02:00
examples Fix to the PrivateKeys example. Thanks to recallfx for the patch. 2014-06-02 21:49:59 +08:00
misc Add a logo. 2013-03-01 13:59:48 +01:00
orchid Fixed javadoc build on Java 8 by turning off the fascist DocLint. 2014-06-02 21:18:27 +08:00
tools Fix autosave in WalletTool on Windows 2014-06-24 14:19:14 +02:00
wallettemplate Fixed wallettemplate to compile again after BigInteger -> Coin refactoring. 2014-06-02 21:17:23 +08:00
.gitattributes Add a logo. 2013-03-01 13:59:48 +01:00
.gitignore HD wallets alpha preview 2014-05-29 20:11:13 +02:00
AUTHORS Update AUTHORS file with recent contributors 2014-06-11 16:24:11 +02:00
COPYING Initial checkin of BitCoinJ 2011-03-07 10:17:10 +00:00
HD Wallets TODO.txt HD Wallets: implement auto upgrade behaviour and refresh the design doc. 2014-06-13 14:11:51 +02:00
pom.xml Fixed javadoc build on Java 8 by turning off the fascist DocLint. 2014-06-02 21:18:27 +08:00
README Fix website link in README 2014-05-30 15:47:13 +02:00

To get started, ensure you have the latest JDK installed, and download Maven from:

  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.

Alternatively, just import the project using your IDE. IntelliJ has Maven integration once you tell it where to
find your unzipped Maven install directory.

Now try running one of the example apps:

  cd examples
  mvn exec:java -Dexec.mainClass=com.google.bitcoin.examples.ForwardingService -Dexec.args="<insert a bitcoin address here>"

It will download the block chain and eventually print a Bitcoin address. If you send coins to it,
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.

Now you are ready to follow the tutorial:

   https://bitcoinj.github.io/getting-started