I\'ve a fresh install of netbean 11.1. Now I\'m trying to build a project but I get the following error output:
Cannot run program \"cmd\" (in direc
Although this problem can be fixed by installing jdk1.8.0_221, but actually you don't need to downgrade your JDK. Just try these:
-J-Djdk.lang.Process.allowAmbiguousCommands=true
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m ......."
Sample screenshot as shown below:
4. Save the change and start your netbeans IDE.