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

Windows 10
NetBeans 8.2
JDK 1.8.0_241
GlassFish Server 4.1.1

Issue

While trying to run a Maven project, the following error is generated in NetBeans IDE:

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

Fix

Edit:
C:\Program Files\NetBeans 8.2\etc\netbeans.conf

Append to “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”

The cause of this error is due to the Java update mentioned here:

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com
%d bloggers like this: