Updates cocos2d-x java codes