Trying to pass info to java from parser