Compile Java classes first.