I’ve had a bit of oddness when working with NetBeans on my computer. Sometimes code wouldn’t run, even though there wasn’t any type of error in it. And sometimes it would run old versions of the code.
After banging my head on the desk, I noticed the spinning Google Drive icon in the system tray. It was spinning, syncing files.
Turns out the problem had nothing to do with NetBeans or my code. Google Drive was trying to sync the
.class files, which meant that NetBeans couldn’t delete them on a new build. Paused Google Drive and everything works. Would be nice if Google Drive let us exclude certain file types, but apparently that’s not an option yet.