user57703: 
why in this line(peerGroup.downloadBlockChain();) I can't connection peer?? I'm confuse.

user2306: It looks like the code that you're running expects to be able to connect to localhost and download the blockchain. Since there is no litecoin instance listening locally, this will not work.
Install litecoin, and run it.

57703: <p><a href="https://i.stack.imgur.com/nXzx5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nXzx5.png" alt="Use createWalletAPI buy litecoinj"></a></p>

<p>why in this line(peerGroup.downloadBlockChain();) I can't connection peer?? I'm confuse.</p>
 2306: <p>It looks like the code that you're running expects to be able to connect to localhost and download the blockchain. Since there is no litecoin instance listening locally, this will not work.</p>

<p>Install <a href="https://litecoin.org/" rel="nofollow noreferrer">litecoin</a>, and run it.</p>
