Trying to fix netbeans errors