Java code for Bitcoin Mining? 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
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.