how to fix maybe only in memory error on netbeans