tests: Java tests build in Linux