You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by "Greenberg, Gary" <gg...@visa.com> on 2019/10/29 23:25:54 UTC
Can't build newly cloned project.
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" -Dmaven.ext.class.path=\"C:\\Program Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): Malformed argument has embedded quote: "C:\Program Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" -Djava.net.useSystemProxies=true clean install
Previously I didn't get anything like that.
Any ideas how to fix it?
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902
[EmailSig-TaglineVersion]
RE: Can't build newly cloned project.
Posted by "Greenberg, Gary" <gg...@visa.com>.
That is the only Java installed on my laptop.
Here is the content of Help->About:
Product Version: Apache NetBeans IDE 11.1
Java: 1.8.0_231; Java HotSpot(TM) 64-Bit Server VM 25.231-b32
Runtime: Java(TM) SE Runtime Environment 1.8.0_231-b32
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\ggreenbe\AppData\Roaming\NetBeans\11.1
Cache directory: C:\Users\ggreenbe\AppData\Local\NetBeans\Cache\11.1
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902
[EmailSig-TaglineVersion]
From: Laszlo Kishalmi <la...@gmail.com>
Sent: Tuesday, October 29, 2019 5:36 PM
To: users@netbeans.apache.org
Subject: Re: Can't build newly cloned project.
That's great, but does NetBeans also runs Java 8?
You can check it in the Help > About dialog
On 10/29/19 4:35 PM, Greenberg, Gary wrote:
No, I am still running it on Java 8.
C:\Users\ggreenbe>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com<ma...@visa.com>
M: 650-269-7902
[EmailSig-TaglineVersion]
From: Laszlo Kishalmi <la...@gmail.com>
Sent: Tuesday, October 29, 2019 4:32 PM
To: users@netbeans.apache.org<ma...@netbeans.apache.org>
Subject: Re: Can't build newly cloned project.
You must be running your IDE on new JDK 11.0.5
You need to install 11.2 to overcome that problem or
Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and https://issues.apache.org/jira/browse/NETBEANS-3253
The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" -Dmaven.ext.class.path=\"C:\\Program Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): Malformed argument has embedded quote: "C:\Program Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" -Djava.net.useSystemProxies=true clean install
Previously I didn’t get anything like that.
Any ideas how to fix it?
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com<ma...@visa.com>
M: 650-269-7902
[EmailSig-TaglineVersion]
Re: Can't build newly cloned project.
Posted by Laszlo Kishalmi <la...@gmail.com>.
That's great, but does NetBeans also runs Java 8?
You can check it in the Help > About dialog
On 10/29/19 4:35 PM, Greenberg, Gary wrote:
>
> No, I am still running it on Java 8.
>
> C:\Users\ggreenbe>java -version
>
> java version "1.8.0_231"
>
> Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
>
> Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggreenbe@visa.com
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>
> *From:*Laszlo Kishalmi <la...@gmail.com>
> *Sent:* Tuesday, October 29, 2019 4:32 PM
> *To:* users@netbeans.apache.org
> *Subject:* Re: Can't build newly cloned project.
>
> You must be running your IDE on new JDK 11.0.5
>
> You need to install 11.2 to overcome that problem or
>
> Check out these issues:
> https://issues.apache.org/jira/browse/NETBEANS-3251
> <https://issues.apache.org/jira/browse/NETBEANS-3251> and
> https://issues.apache.org/jira/browse/NETBEANS-3253
> <https://issues.apache.org/jira/browse/NETBEANS-3253>
>
> The workaround is documented there..
>
> On 10/29/19 4:25 PM, Greenberg, Gary wrote:
>
> Just cloned a new project from stash repository and trying to
> build it.
>
> Getting following error message:
>
> cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program
> Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program
> Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\"
> -Dmaven.ext.class.path=\"C:\\Program
> Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\"
> -Djava.net.useSystemProxies=true clean install\""
>
> Cannot run program "cmd" (in directory
> "P:\dpd_bia_vmssbatch\VMSS-Batch"): Malformed argument has
> embedded quote: "C:\Program
> Files\Netbeans\11.1\java\maven\bin\mvn.cmd"
> -Dmaven.ext.class.path="C:\Program
> Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar"
> -Djava.net.useSystemProxies=true clean install
>
> Previously I didn’t get anything like that.
>
> Any ideas how to fix it?
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggreenbe@visa.com <ma...@visa.com>
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>
Re: Can't build newly cloned project.
Posted by Neil C Smith <ne...@apache.org>.
On Tue, 29 Oct 2019, 23:36 Greenberg, Gary, <gg...@visa.com> wrote:
> No, I am still running it on Java 8.
>
That issue also affects the latest Java 8 release. Same workaround.
Best wishes,
Neil
>
RE: Can't build newly cloned project.
Posted by "Greenberg, Gary" <gg...@visa.com>.
Thank you, thank you, thank you.
It works.
Now I am back in business.
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902
-----Original Message-----
From: Neil C Smith <ne...@apache.org>
Sent: Wednesday, October 30, 2019 10:35 AM
To: Greenberg, Gary <gg...@visa.com>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Can't build newly cloned project.
On Wed, 30 Oct 2019 at 17:19, Greenberg, Gary <gg...@visa.com> wrote:
>
> Unfortunately, per company policy we all have to work on Java 8 and versions of Java are downloaded automatically.
> Thus, JDK 8u231 was installed on my machine about a week ago. Before I was using JDK 8u221 and did not have this problem.
> Shall I downgrade?
Just edit netbeans.conf as suggested above. Add in -J-Djdk.lang.Process.allowAmbiguousCommands=true as per https://github.com/apache/netbeans/pull/1581/files
Or you could edit your desktop shortcut to launch NetBeans with that option instead.
> BTW, I did go to the Oracle site and there is no JDK 11.2 there. 11.0.5 is the latest in Java 11.
> https://www.oracle.com/technetwork/java/javase/overview/index.html
11.2 refers to NetBeans 11.2, which has just been voted for release, although not announced yet. That has the fix in netbeans.conf built in.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't build newly cloned project.
Posted by Neil C Smith <ne...@apache.org>.
On Wed, 30 Oct 2019 at 17:19, Greenberg, Gary <gg...@visa.com> wrote:
>
> Unfortunately, per company policy we all have to work on Java 8 and versions of Java are downloaded automatically.
> Thus, JDK 8u231 was installed on my machine about a week ago. Before I was using JDK 8u221 and did not have this problem.
> Shall I downgrade?
Just edit netbeans.conf as suggested above. Add in
-J-Djdk.lang.Process.allowAmbiguousCommands=true as per
https://github.com/apache/netbeans/pull/1581/files
Or you could edit your desktop shortcut to launch NetBeans with that
option instead.
> BTW, I did go to the Oracle site and there is no JDK 11.2 there. 11.0.5 is the latest in Java 11.
> https://www.oracle.com/technetwork/java/javase/overview/index.html
11.2 refers to NetBeans 11.2, which has just been voted for release,
although not announced yet. That has the fix in netbeans.conf built
in.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
RE: Can't build newly cloned project.
Posted by "Greenberg, Gary" <gg...@visa.com>.
Unfortunately, per company policy we all have to work on Java 8 and versions of Java are downloaded automatically.
Thus, JDK 8u231 was installed on my machine about a week ago. Before I was using JDK 8u221 and did not have this problem.
Shall I downgrade?
BTW, I did go to the Oracle site and there is no JDK 11.2 there. 11.0.5 is the latest in Java 11.
https://www.oracle.com/technetwork/java/javase/overview/index.html
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902
-----Original Message-----
From: Neil C Smith <ne...@apache.org>
Sent: Wednesday, October 30, 2019 3:19 AM
To: Richard Grin <Ri...@univ-cotedazur.fr>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Can't build newly cloned project.
On Wed, 30 Oct 2019 at 09:40, Richard Grin <Ri...@univ-cotedazur.fr> wrote:
>
> I was not clear enough :
>
> I think that the problem about Java 11.0.5 existed before for other versions ** of Java SE **.
Obviously I was not clear enough either! ;-) I'm also talking about Java SE. The problem affecting NetBeans was introduced by a security update in mid-Oct in JDK 8u231, 11.0.5 and 13.0.1. All of those should be broken in the same way with NetBeans 11.0 or 11.1 without applying the workaround. The workaround *just* made it into 11.2.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't build newly cloned project.
Posted by Neil C Smith <ne...@apache.org>.
On Wed, 30 Oct 2019 at 09:40, Richard Grin
<Ri...@univ-cotedazur.fr> wrote:
>
> I was not clear enough :
>
> I think that the problem about Java 11.0.5 existed before for other versions ** of Java SE **.
Obviously I was not clear enough either! ;-) I'm also talking about
Java SE. The problem affecting NetBeans was introduced by a security
update in mid-Oct in JDK 8u231, 11.0.5 and 13.0.1. All of those
should be broken in the same way with NetBeans 11.0 or 11.1 without
applying the workaround. The workaround *just* made it into 11.2.
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Can't build newly cloned project.
Posted by Richard Grin <Ri...@univ-cotedazur.fr>.
I was not clear enough :
I think that the problem about Java 11.0.5 existed before for other versions ** of Java SE **. (not of NetBeans).
Le 30/10/2019 à 10:31, Neil C Smith a écrit :
On Wed, 30 Oct 2019, 09:16 Richard Grin, <Ri...@univ-cotedazur.fr>> wrote:
I think that the problem about Java 11.0.5 existed before for other versions.
It was introduced in JDK updates in mid-Oct, hence why it wasn't picked up earlier and the workaround only just made it into 11.2
Best wishes,
Neil
Re: Can't build newly cloned project.
Posted by Neil C Smith <ne...@apache.org>.
On Wed, 30 Oct 2019, 09:16 Richard Grin, <Ri...@univ-cotedazur.fr>
wrote:
> I think that the problem about Java 11.0.5 existed before for other
> versions.
>
It was introduced in JDK updates in mid-Oct, hence why it wasn't picked up
earlier and the workaround only just made it into 11.2
Best wishes,
Neil
>
Re: Can't build newly cloned project.
Posted by Richard Grin <Ri...@univ-cotedazur.fr>.
I think that the problem about Java 11.0.5 existed before for other versions. Did you try the workaround given by Lazlo?
Le 30/10/2019 à 00:35, Greenberg, Gary a écrit :
No, I am still running it on Java 8.
C:\Users\ggreenbe>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com<ma...@visa.com>
M: 650-269-7902
[EmailSig-TaglineVersion]
From: Laszlo Kishalmi <la...@gmail.com>
Sent: Tuesday, October 29, 2019 4:32 PM
To: users@netbeans.apache.org<ma...@netbeans.apache.org>
Subject: Re: Can't build newly cloned project.
You must be running your IDE on new JDK 11.0.5
You need to install 11.2 to overcome that problem or
Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and https://issues.apache.org/jira/browse/NETBEANS-3253
The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" -Dmaven.ext.class.path=\"C:\\Program Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): Malformed argument has embedded quote: "C:\Program Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" -Djava.net.useSystemProxies=true clean install
Previously I didn’t get anything like that.
Any ideas how to fix it?
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com<ma...@visa.com>
M: 650-269-7902
[EmailSig-TaglineVersion]
RE: Can't build newly cloned project.
Posted by "Greenberg, Gary" <gg...@visa.com>.
No, I am still running it on Java 8.
C:\Users\ggreenbe>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902
[EmailSig-TaglineVersion]
From: Laszlo Kishalmi <la...@gmail.com>
Sent: Tuesday, October 29, 2019 4:32 PM
To: users@netbeans.apache.org
Subject: Re: Can't build newly cloned project.
You must be running your IDE on new JDK 11.0.5
You need to install 11.2 to overcome that problem or
Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and https://issues.apache.org/jira/browse/NETBEANS-3253
The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" -Dmaven.ext.class.path=\"C:\\Program Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): Malformed argument has embedded quote: "C:\Program Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" -Djava.net.useSystemProxies=true clean install
Previously I didn’t get anything like that.
Any ideas how to fix it?
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com<ma...@visa.com>
M: 650-269-7902
[EmailSig-TaglineVersion]
Re: Can't build newly cloned project.
Posted by Laszlo Kishalmi <la...@gmail.com>.
You must be running your IDE on new JDK 11.0.5
You need to install 11.2 to overcome that problem or
Check out these issues:
https://issues.apache.org/jira/browse/NETBEANS-3251 and
https://issues.apache.org/jira/browse/NETBEANS-3253
The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
>
> Just cloned a new project from stash repository and trying to build it.
>
> Getting following error message:
>
> cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program
> Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program
> Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\"
> -Dmaven.ext.class.path=\"C:\\Program
> Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\"
> -Djava.net.useSystemProxies=true clean install\""
>
> Cannot run program "cmd" (in directory
> "P:\dpd_bia_vmssbatch\VMSS-Batch"): Malformed argument has embedded
> quote: "C:\Program Files\Netbeans\11.1\java\maven\bin\mvn.cmd"
> -Dmaven.ext.class.path="C:\Program
> Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar"
> -Djava.net.useSystemProxies=true clean install
>
> Previously I didn’t get anything like that.
>
> Any ideas how to fix it?
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggreenbe@visa.com
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>