[Java]: Warnings and libs cleanup.