fix errorformat for java