lburaggi opened a new issue #3853:
URL: https://github.com/apache/netbeans/issues/3853


   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   The values set in the Project properties panel, Run section, Arguments field 
are ignored and not passed to the main(args) call.
   
   ### How to reproduce
   
   1. Create a new Java Application Project (both the Ant or Maven based 
projects show the same problem)
   2. Modify the main class template as shown:
   <pre>
   public static void main(String[] args) {
        System.out.println("Size: " + args.length);
   }
   </pre>
   
   3. Open the Project Properties panel, go to the Run panel and write some 
arguments in the Arguments field
   ![Immagine 2022-03-25 
014728](https://user-images.githubusercontent.com/9415225/160033197-1aa65797-b567-481f-bebb-19eb4d649314.png)
   
   4. Run the program and note the result:
   ![Immagine 2022-03-25 
015034](https://user-images.githubusercontent.com/9415225/160033474-736c9f2b-3f87-4e74-b5f4-ed3b8d0b9177.png)
   
   The args String[] is empty !
   
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 12.3 or earlier
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   Java 17.0.2
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   The bug is very easy to reproduce on my PC, I hope you will reproduce it too
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to