Java with maven wouldn't build: Cannot run program “cmd” “Malformed argument has embedded quote”

前端 未结 10 1977
花落未央
花落未央 2020-12-01 06:29

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

相关标签:
10条回答
  • 2020-12-01 07:08

    I had the same problem with oracle jdk 13.0.1 and netbeans 11.1, but it worked for me with openjdk 13.0.1 (https://jdk.java.net/13/).

    0 讨论(0)
  • 2020-12-01 07:14

    Apache NetBeans 11.1 does indeed not support JDK 13, that's what the upcoming Apache NetBeans 11.2 is for -- latest beta: bit.ly/apache-netbeans-11-2-beta-3

    0 讨论(0)
  • 2020-12-01 07:15

    At the time that I'm writing, I had only JDK13 installed only on my machine. After unzipped my netbeans I've got the same problem with the internal maven of my netbeans 11.1.

    Apparently netbeans 11.1 does not work properly with the JDK13. I just installed the JDK 8 and the problem now is solved, without any additional configuration or parameter change.

    Nontheless, since I need the JDK13, I have both installed but my netbeans.conf file is pointing to JDK8. Later, you can define the new Java platform in netbeans project configuration.

    I hope this might help.

    Cheers!

    0 讨论(0)
  • 2020-12-01 07:16

    It seems to happen with all recently released jdk version (11.0.5 and 13.0.1 at least), even with the latest Netbeans 11.2vc1 (and witnessed on NB 11.1 too). Downgrade your jdk to 11.0.4 or 13.0.0. It fixed the issue for me

    0 讨论(0)
提交回复
热议问题