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
>


importing classes in custom templates

2021-08-04 Thread Greenberg, Gary
I have modified code templates for my NB12.4 installation and added couple of 
my custom templates.
They are working as expected, however, after inserting the code is marked with 
error badges, because
classes are not imported. I have to do a right-click on the badge and select 
"import classname".
Is it possible to automatically add import statement for these classes?

Thanks,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



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


RE: GIT branch naming

2021-08-04 Thread Greenberg, Gary
Nope, no extra spaces. Checked it many times.

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902



-Original Message-
From: Emilian Bold  
Sent: Wednesday, August 4, 2021 1:54 AM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: GIT branch naming

I wonder if it's the extra space after "feature/"?

--emi

On Wed, Aug 4, 2021 at 2:38 AM Greenberg, Gary  
wrote:
>
> Our company policy require branches in the repository to contain department 
> ID and JIRA ticket number.
> I.e. bugfix/DEPTID-JIRATICKET or feature/ DEPTID-JIRATICKET.
>
> Our stash repo configured that way and won't accept any check-ins that are 
> not compliant with the rule.
>
> While I do not have any problems with bugfix branches, Netbeans (12.4) won't 
> allow me to create feature branches.
>
> It is telling me "Cannot create branch under already existing "feature"".
>
> It is not a showstopper for me, but does require additional hazzle.
>
> I have to :
>
> create a branch in the Stash using their web interface create a 
> different local branch name create a remote branch mapping do a fetch
>
> Manual git command does not give me any error message. Why Netbeans putting 
> this limitation?
>
> If I am doing something wrong, would you please steer me to the right 
> direction?
>
>
>
> Regards,
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
>

-
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=04%7C01%7Cggreenbe%40visa.com%7C96464b482b224d39d13808d957259899%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637636641372978570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=869rn1Ykm0ELLwj0FGyMyuyovmvTWvAFJIPix5UFdKw%3Dreserved=0


-
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



Adding new Action to maven project file

2021-08-04 Thread Benjamin Neuman
I would like to implement a module that will add a new Action to a maven
project file. Specifically, this action would allow me to execute an
integration test on the selected test file using the failsafe 'verify'
maven command (e.g. faisafe:verify -it.test=SomeIT )
I'd like to piggy back on the existing maven action provider functionality
if possible, perhaps by registering my action with the
org.netbeans.modules.maven.ActionProviderImpl if possible.
Any help or guidance would be greatly appreciated.

Thanks.
Ben


Re: GIT branch naming

2021-08-04 Thread Emilian Bold
I wonder if it's the extra space after "feature/"?

--emi

On Wed, Aug 4, 2021 at 2:38 AM Greenberg, Gary
 wrote:
>
> Our company policy require branches in the repository to contain department 
> ID and JIRA ticket number.
> I.e. bugfix/DEPTID-JIRATICKET or feature/ DEPTID-JIRATICKET.
>
> Our stash repo configured that way and won’t accept any check-ins that are 
> not compliant with the rule.
>
> While I do not have any problems with bugfix branches, Netbeans (12.4) won’t 
> allow me to create feature branches.
>
> It is telling me “Cannot create branch under already existing “feature””.
>
> It is not a showstopper for me, but does require additional hazzle.
>
> I have to :
>
> create a branch in the Stash using their web interface
> create a different local branch name
> create a remote branch mapping
> do a fetch
>
> Manual git command does not give me any error message. Why Netbeans putting 
> this limitation?
>
> If I am doing something wrong, would you please steer me to the right 
> direction?
>
>
>
> Regards,
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
>

-
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: Netbeans 11.3 enterprise application

2021-08-04 Thread Wayne Gemmell | Connect
Don't do it with netbeans. There is no support for that going forward. I
changed my one to a war and added a few cron jobs. It's now simpler and I
have less build issues.

Regards
Wayne


On Tue, 3 Aug 2021 at 12:15, Tom Coudyzer  wrote:

> Hi,
>
> Seeking for some help on creating an Enterprise application  (with Maven)
> via Netbeans 11.3 and AdoptOpenJDK 8 on MacOS 11.5.1
>
> I create a new Enterprise application with Maven (Jave-EE 8)  and end up
> with 4 projects. The wizard starts to compile the maven projects but gives
> an error.
>
> Ignoring this error I clean an build the
>
> web (module) project
> ejb (module) project
> project
> ear (module) project
>
> First 3 build with success however when building the EAR I get this error
>
> Failed to execute goal on project myproject-ear: Could not resolve
> dependencies for project com.company:myproject-ear:war:1.0-SNAPSHOT: Could
> not find artifact com.company:myproject-ejb:jar:1.0-SNAPSHOT -> [Help 1]
>
> I manage to get it working when I change the EJB dependency and change it
> from packing type EJB to WAR in the pom.xml of the EAR module/project
>
> Sorry if this is a "rookie" mistake or missing something from my side but
> would be great to get some understanding why this "out-of-the-box" is not
> working and what to do to get this fixed.
>
> Thank you already and any help is much appreciated!
>
> /Tom
>