javanetbeans

netbeans runs program even if there are errors in code


so, I accidentally chose "don't show me this message again" and "Run anyways". is there a way to undo this setting? Like there can be typos throughout the program, and it'll still try to run. I don't want this, because if there's a section of code that might not be called while i'm testing the program, I might not notice the error.

newest version, 7.4 NetBeans EE for windows

if a function call is actually made to the "uncompilable source code", then it gives such an error

I can search through the program manually line by line, making sure there are no red squiggly lines, but this seems impractical. perhaps I should just re-install netbeans?


Solution

  • According to multiple posts on the Internet, you should remove the BuildArtifactMapperImpl.properties file in the <netbeans home>/<version>/config/Preferences/org/netbeans/modules/java/source/ directory (where it is depends on your installation). It should have the askBeforeRunWithErrors property set to false. Some just fixed buy deleting the whole file.

    Personally, I do not have that file but I have not checked that option, so it might be generated at that point.