fix usage msg
migrate java samples to shell api