resolving net beans problem