fix type error and change the extern jar lib