enabled java sample