user24969: I am a student and doing research on Bitcoin. I wanted to know how mining is done but I wanted it see the some basic java code. Can some one provide me with resources? I would appreciate if some one can suggest me some libraries to look into. I checked BitcoinJ but found out that it does not support mining.
Thanks

user5757: I'm not aware of any Java mining code existing, and I would not expect it to: mining needs to be as fast as possible, so you wouldn't want to write it in a language that runs on a virtual machine.
Since the reference implementation, Bitcoin Core, stands as the ultimate  documentation of the protocol, and it is written in C++, I would say that anyone doing research on Bitcoin needs at least a competent reading knowledge of C++. Once you have that, you can read the mining code in Bitcoin Core.

user23236: One of the very fist GPU miners was in java using OpenCL.  It was called DiabloMiner and you can find the source here;-
https://github.com/Diablo-D3/DiabloMiner
It hasn't been updated the the past two years but it is still fully functional.

24969: <p>I am a student and doing research on Bitcoin. I wanted to know how mining is done but I wanted it see the some basic java code. Can some one provide me with resources? I would appreciate if some one can suggest me some libraries to look into. I checked BitcoinJ but found out that it does not support mining.</p>

<p>Thanks</p>
 5757: <p>I'm not aware of any Java mining code existing, and I would not expect it to: mining needs to be as fast as possible, so you wouldn't want to write it in a language that runs on a virtual machine.</p>

<p>Since the reference implementation, Bitcoin Core, stands as the ultimate  documentation of the protocol, and it is written in C++, I would say that anyone doing research on Bitcoin needs at least a competent reading knowledge of C++. Once you have that, you can read the mining code in Bitcoin Core.</p>
 23236: <p>One of the very fist GPU miners was in java using OpenCL.  It was called DiabloMiner and you can find the source here;-</p>

<p><a href="https://github.com/Diablo-D3/DiabloMiner" rel="nofollow">https://github.com/Diablo-D3/DiabloMiner</a></p>

<p>It hasn't been updated the the past two years but it is still fully functional.</p>
