Ensure working in Netbeans