Add Java support.

Task-number: QBS-228
Change-Id: I00e853087e8622fd1c73e7930d0ffd506aa56173
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>