Cannot run program “cmd”, Malformed argument has embedded quote

Contexto

Windows 10
NetBeans IDE 11.0

Problema

Mientras se intenta ejecutar un proyecto Java Maven, el IDE arroja el siguiente error

Cannot run program "cmd" [...] Malformed argumenthas embedded quote

Solución

Editar:
C:\netbeans\etc\netbeans.conf

Agregar a “netbeans_default_options”:

-J-Djdk.lang.Process.allowAmbiguousCommands=true

For example:
netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Djdk.lang.Process.allowAmbiguousCommands=true”

Más info:

https://www.oracle.com/technetwork/java/javase/13-0-1-relnotes-5592797.html#JDK-8221858

Leave a Reply

Your email address will not be published.