thoth build with Java