fixing cmd_ib for java