Re: Java : HelloWorld

2021-08-05 Thread Nicholas
Glad it worked out.  It was someone else who found the link for you (I 
thought it was a problem with your maven build file). Happy coding!




On 2021-08-05 5:27 p.m., Peter Zimmermann wrote:
Many thanks to those that attended to my problem. Modifying the 
netbeans.conf file as per the link below from Nicholas solved the problem.


On Thu, 5 Aug 2021 at 2:53 pm, Nicholas > wrote:


When I see this message below I want to see the command which
which was issued.  Easiest way to do that is to use maven or javac
directly from the console.  My two cents.

Although, yes, a cursory search does indicate, as suggested:

https://stackoverflow.com/q/58411279/4531180


which has nothing to do with Maven nor Netbeans per se. 
Unsupported JDK or something(?).



On 2021-08-04 9:41 a.m., Benjamin Neuman wrote:

Hey Peter,
That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd
executable?

On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann
mailto:zinn...@gmail.com>> wrote:

Hi NetBeans users,

 Although I have significant programming experience I’m new
to NetBeans and Java and I’m having trouble getting the
simplest “Hello World” program to run. I keep getting the
message shown below:

Cannot run program "cmd" (in directory
"C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
Malformed argument has embedded quote:
"C:\netbeans\java\maven\bin\mvn.cmd" -Dexec.args="-classpath
%classpath com.mycompany.helloworldapp.Main"
-Dexec.executable="C:\Program
Files\Java\jdk-16.0.2\bin\java.exe"

-Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
-Dfile.encoding=UTF-8 process-classes
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

I’m sure it’s something simple , any help would be appreciated.

zinn...@gmail.com 

Sent from Mail
 for Windows 10

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
 For additional
commands, e-mail: users-h...@netbeans.apache.org
 For further
information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: Java : HelloWorld

2021-08-05 Thread Peter Zimmermann
Many thanks to those that attended to my problem. Modifying the
netbeans.conf file as per the link below from Nicholas solved the problem.

On Thu, 5 Aug 2021 at 2:53 pm, Nicholas  wrote:

> When I see this message below I want to see the command which which was
> issued.  Easiest way to do that is to use maven or javac directly from the
> console.  My two cents.
>
> Although, yes, a cursory search does indicate, as suggested:
>
> https://stackoverflow.com/q/58411279/4531180
>
> which has nothing to do with Maven nor Netbeans per se.  Unsupported JDK
> or something(?).
>
>
>
> On 2021-08-04 9:41 a.m., Benjamin Neuman wrote:
>
> Hey Peter,
> That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?
>
> On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann  wrote:
>
>> Hi NetBeans users,
>>
>>  Although I have significant programming experience I’m new to NetBeans
>> and Java and I’m having trouble getting the simplest “Hello World” program
>> to run. I keep getting the message shown below:
>>
>>
>>
>> Cannot run program "cmd" (in directory
>> "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
>> Malformed argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd"
>> -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
>> -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
>> -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
>> -Dfile.encoding=UTF-8 process-classes
>> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
>>
>>
>>
>> I’m sure it’s something simple , any help would be appreciated.
>>
>>
>>
>> zinn...@gmail.com
>>
>>
>>
>>
>>
>> Sent from Mail  for
>> Windows 10
>>
>>
>> - To
>> unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For
>> additional commands, e-mail: users-h...@netbeans.apache.org For further
>> information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: Java : HelloWorld

2021-08-04 Thread Nicholas
When I see this message below I want to see the command which which was 
issued.  Easiest way to do that is to use maven or javac directly from 
the console.  My two cents.


Although, yes, a cursory search does indicate, as suggested:

https://stackoverflow.com/q/58411279/4531180

which has nothing to do with Maven nor Netbeans per se. Unsupported JDK 
or something(?).




On 2021-08-04 9:41 a.m., Benjamin Neuman wrote:

Hey Peter,
That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?

On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann > wrote:


Hi NetBeans users,

 Although I have significant programming experience I’m new to
NetBeans and Java and I’m having trouble getting the simplest
“Hello World” program to run. I keep getting the message shown below:

Cannot run program "cmd" (in directory
"C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
Malformed argument has embedded quote:
"C:\netbeans\java\maven\bin\mvn.cmd" -Dexec.args="-classpath
%classpath com.mycompany.helloworldapp.Main"
-Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
-Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
-Dfile.encoding=UTF-8 process-classes
org.codehaus.mojo:exec-maven-plugin:1.5.0:exec

I’m sure it’s something simple , any help would be appreciated.

zinn...@gmail.com 

Sent from Mail 
for Windows 10

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
 For additional
commands, e-mail: users-h...@netbeans.apache.org
 For further information
about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
 



Re: Java : HelloWorld

2021-08-04 Thread Klaus Martinschitz
Hello,

Try this…
https://stackoverflow.com/questions/58411279/java-with-maven-wouldnt-build-cannot-run-program-cmd-malformed-argument-has

I remember that I had the same problem some month ago. As far as I can
remember it is a Java problem.

Regards,
Klaus

Carl Mosca  schrieb am Do. 5. Aug. 2021 um 00:22:

> Not following the maven vs netbeans comment. I was referring to the fact
> that onedrive is referenced and I seem to recall strange behavior on such
> (google, etc) in the past but perhaps I dreamed it.
>
> On Wed, Aug 4, 2021 at 5:50 PM Geertjan Wielenga
>  wrote:
>
>> Not NetBeans. Maven. Anything that works/does not work in Maven
>> works/does not work in NetBeans.
>>
>> Gj
>>
>> On Wed, 4 Aug 2021 at 23:23, Scott Palmer  wrote:
>>
>>> That’s the standard install location on Windows.  If it doesn’t work
>>> with NetBeans it would be broken for most people on Windows.
>>>
>>> Scott
>>>
>>> On Aug 4, 2021, at 2:02 PM, Geertjan Wielenga <
>>> geertjan.wiele...@googlemail.com.INVALID> wrote:
>>>
>>> Maybe connected to installing in a dir with spaces, i.e., C:\Program
>>> Files\Java\jdk-16.0.2\bin\java.exe
>>>
>>> Gj
>>>
>>> On Wed, Aug 4, 2021 at 6:41 PM Benjamin Neuman 
>>> wrote:
>>>
 Hey Peter,
 That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd
 executable?

 On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann 
 wrote:

> Hi NetBeans users,
>
>  Although I have significant programming experience I’m new to
> NetBeans and Java and I’m having trouble getting the simplest “Hello 
> World”
> program to run. I keep getting the message shown below:
>
>
>
> Cannot run program "cmd" (in directory
> "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
> Malformed argument has embedded quote: 
> "C:\netbeans\java\maven\bin\mvn.cmd"
> -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
> -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
> -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
> -Dfile.encoding=UTF-8 process-classes
> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
>
>
>
> I’m sure it’s something simple , any help would be appreciated.
>
>
>
> zinn...@gmail.com
>
>
>
>
>
> Sent from Mail  for
> Windows 10
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For
> additional commands, e-mail: users-h...@netbeans.apache.org For
> further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


>>> --
> Regards,
> Carl
>


Re: Java : HelloWorld

2021-08-04 Thread Carl Mosca
Not following the maven vs netbeans comment. I was referring to the fact
that onedrive is referenced and I seem to recall strange behavior on such
(google, etc) in the past but perhaps I dreamed it.

On Wed, Aug 4, 2021 at 5:50 PM Geertjan Wielenga
 wrote:

> Not NetBeans. Maven. Anything that works/does not work in Maven works/does
> not work in NetBeans.
>
> Gj
>
> On Wed, 4 Aug 2021 at 23:23, Scott Palmer  wrote:
>
>> That’s the standard install location on Windows.  If it doesn’t work with
>> NetBeans it would be broken for most people on Windows.
>>
>> Scott
>>
>> On Aug 4, 2021, at 2:02 PM, Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com.INVALID> wrote:
>>
>> Maybe connected to installing in a dir with spaces, i.e., C:\Program
>> Files\Java\jdk-16.0.2\bin\java.exe
>>
>> Gj
>>
>> On Wed, Aug 4, 2021 at 6:41 PM Benjamin Neuman 
>> wrote:
>>
>>> Hey Peter,
>>> That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?
>>>
>>> On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann 
>>> wrote:
>>>
 Hi NetBeans users,

  Although I have significant programming experience I’m new to NetBeans
 and Java and I’m having trouble getting the simplest “Hello World” program
 to run. I keep getting the message shown below:



 Cannot run program "cmd" (in directory
 "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
 Malformed argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd"
 -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
 -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
 -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
 -Dfile.encoding=UTF-8 process-classes
 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec



 I’m sure it’s something simple , any help would be appreciated.



 zinn...@gmail.com





 Sent from Mail  for
 Windows 10


 -
 To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For
 additional commands, e-mail: users-h...@netbeans.apache.org For
 further information about the NetBeans mailing lists, visit:
 https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>> --
Regards,
Carl


Re: Java : HelloWorld

2021-08-04 Thread Geertjan Wielenga
Not NetBeans. Maven. Anything that works/does not work in Maven works/does
not work in NetBeans.

Gj

On Wed, 4 Aug 2021 at 23:23, Scott Palmer  wrote:

> That’s the standard install location on Windows.  If it doesn’t work with
> NetBeans it would be broken for most people on Windows.
>
> Scott
>
> On Aug 4, 2021, at 2:02 PM, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com.INVALID> wrote:
>
> Maybe connected to installing in a dir with spaces, i.e., C:\Program
> Files\Java\jdk-16.0.2\bin\java.exe
>
> Gj
>
> On Wed, Aug 4, 2021 at 6:41 PM Benjamin Neuman 
> wrote:
>
>> Hey Peter,
>> That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?
>>
>> On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann 
>> wrote:
>>
>>> Hi NetBeans users,
>>>
>>>  Although I have significant programming experience I’m new to NetBeans
>>> and Java and I’m having trouble getting the simplest “Hello World” program
>>> to run. I keep getting the message shown below:
>>>
>>>
>>>
>>> Cannot run program "cmd" (in directory
>>> "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
>>> Malformed argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd"
>>> -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
>>> -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
>>> -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
>>> -Dfile.encoding=UTF-8 process-classes
>>> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
>>>
>>>
>>>
>>> I’m sure it’s something simple , any help would be appreciated.
>>>
>>>
>>>
>>> zinn...@gmail.com
>>>
>>>
>>>
>>>
>>>
>>> Sent from Mail  for
>>> Windows 10
>>>
>>>
>>> - To
>>> unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For
>>> additional commands, e-mail: users-h...@netbeans.apache.org For further
>>> information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>


Re: Java : HelloWorld

2021-08-04 Thread Scott Palmer
That’s the standard install location on Windows.  If it doesn’t work with 
NetBeans it would be broken for most people on Windows.

Scott

> On Aug 4, 2021, at 2:02 PM, Geertjan Wielenga 
>  wrote:
> 
> Maybe connected to installing in a dir with spaces, i.e., C:\Program 
> Files\Java\jdk-16.0.2\bin\java.exe
> 
> Gj
> 
> On Wed, Aug 4, 2021 at 6:41 PM Benjamin Neuman  > wrote:
> Hey Peter, 
> That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?
> 
> On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann  > wrote:
> Hi NetBeans users,
> 
>  Although I have significant programming experience I’m new to NetBeans and 
> Java and I’m having trouble getting the simplest “Hello World” program to 
> run. I keep getting the message shown below:
> 
>  
> 
> Cannot run program "cmd" (in directory 
> "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"): Malformed 
> argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd" 
> -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main" 
> -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe" 
> -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar 
> -Dfile.encoding=UTF-8 process-classes 
> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
> 
>  
> 
> I’m sure it’s something simple , any help would be appreciated.
> 
>  
> 
> zinn...@gmail.com 
>  
> 
>  
> 
> Sent from Mail  for Windows 10
> 
>  
> 
> - To 
> unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
>  For additional commands, 
> e-mail: users-h...@netbeans.apache.org 
>  For further information about the 
> NetBeans mailing lists, visit: 
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists 
> 


Re: Java : HelloWorld

2021-08-04 Thread Geertjan Wielenga
Maybe connected to installing in a dir with spaces, i.e., C:\Program
Files\Java\jdk-16.0.2\bin\java.exe

Gj

On Wed, Aug 4, 2021 at 6:41 PM Benjamin Neuman  wrote:

> Hey Peter,
> That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?
>
> On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann  wrote:
>
>> Hi NetBeans users,
>>
>>  Although I have significant programming experience I’m new to NetBeans
>> and Java and I’m having trouble getting the simplest “Hello World” program
>> to run. I keep getting the message shown below:
>>
>>
>>
>> Cannot run program "cmd" (in directory
>> "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
>> Malformed argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd"
>> -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
>> -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
>> -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
>> -Dfile.encoding=UTF-8 process-classes
>> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
>>
>>
>>
>> I’m sure it’s something simple , any help would be appreciated.
>>
>>
>>
>> zinn...@gmail.com
>>
>>
>>
>>
>>
>> Sent from Mail  for
>> Windows 10
>>
>>
>> - To
>> unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For
>> additional commands, e-mail: users-h...@netbeans.apache.org For further
>> information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Re: Java : HelloWorld

2021-08-04 Thread Benjamin Neuman
Hey Peter,
That's an odd one. Is the C:\netbeans\java\maven\bin\mvn.cmd executable?

On Sun, Aug 1, 2021 at 7:53 PM Peter Zimmermann  wrote:

> Hi NetBeans users,
>
>  Although I have significant programming experience I’m new to NetBeans
> and Java and I’m having trouble getting the simplest “Hello World” program
> to run. I keep getting the message shown below:
>
>
>
> Cannot run program "cmd" (in directory
> "C:\Users\User\OneDrive\Documents\NetBeansProjects\HelloWorldApp"):
> Malformed argument has embedded quote: "C:\netbeans\java\maven\bin\mvn.cmd"
> -Dexec.args="-classpath %classpath com.mycompany.helloworldapp.Main"
> -Dexec.executable="C:\Program Files\Java\jdk-16.0.2\bin\java.exe"
> -Dmaven.ext.class.path=C:\netbeans\java\maven-nblib\netbeans-eventspy.jar
> -Dfile.encoding=UTF-8 process-classes
> org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
>
>
>
> I’m sure it’s something simple , any help would be appreciated.
>
>
>
> zinn...@gmail.com
>
>
>
>
>
> Sent from Mail  for
> Windows 10
>
>
> - To
> unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional
> commands, e-mail: users-h...@netbeans.apache.org For further information
> about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists