Are you using the latest image and were able to follow all the steps from /message/379236# 379236 https://communities.intel.com/message/379236# 379236 successfully?
If you have, post the contents of CMakeOutput.log and of CMakeError.log.
By just looking at that log it's difficult to find the specific error. One interesting line is the "Could not find Java" message. Did you make any previous Java installation or modification? Did you change any paths? I'd recommend to run the command make doc according to https://github.com/intel-iot-devkit/tinyb https://github.com/intel-iot-devkit/tinyb to see if you can find useful information in the documentation.
Also, please also provide the output of CMakeOutput.log