For faster performance, install the IDE and JDK on local drives rather than network drives. It is also recommended to keep project files on local drives. Project files on a slow network can significantly decrease responsiveness of some tasks.

Source: NetBeans User FAQ