Replace JavaError with WindowsError.