You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/03/28 14:40:20 UTC
[GitHub] [netbeans] lburaggi commented on issue #3853: The project > Properties > Run panel, Arguments field values are ignored
lburaggi commented on issue #3853:
URL: https://github.com/apache/netbeans/issues/3853#issuecomment-1080740843
That's very strange !
I repeated all the process on a different Windows PC:
1. OS is Windows 10 PRO version 21H2 build 19044.1586
2. Java version "17.0.2" 2022-01-18 LTS
3. Netbeans About Panel reports:
Product Version: Apache NetBeans IDE 13
Java: 17.0.2; Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86
Runtime: Java(TM) SE Runtime Environment 17.0.2+8-LTS-86
System: Windows 10 version 10.0 running on amd64; Cp1252; it_IT (nb)
The Netbeans on the PC is a fresh installation of version 13 (Note: when requested I answered yes to the question: Do you want to import the previous NetBeans environment)
Detailed project creation step list:
1. New Project button selected
2. In the New Project panel I selected the "Java with Maven" category and "Java Application" project
3. The project name is "p", all other parameters left unchanged
4. I edited the P class as follow:
<pre><code>
package it.horsa.devlab.p;
import java.util.Arrays;
/**
*
* @author Luca Buraggi
*/
public class P {
public static void main(String[] args) {
System.out.println("Size: " + args.length);
System.err.println(Arrays.asList(args));
}
}
</code></pre>
5. In the project Properties Panel, Run category, I set the Arguments field = a0 a1 a2
6. I run the project with the following result:
<pre>
cd C:\Users\luca\Documents\NetBeansProjects\p; "JAVA_HOME=C:\\Program Files\\Java\\jdk-17.0.2" M2_HOME=C:\\bin\\maven cmd /c "\"C:\\bin\\maven\\bin\\mvn.cmd\" -Dexec.vmArgs= \"-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}\" \"-Dexec.executable=C:\\Program Files\\Java\\jdk-17.0.2\\bin\\java.exe\" -Dexec.mainClass=it.horsa.devlab.p.P -Dexec.classpathScope=runtime -Dexec.appArgs= \"-Dmaven.ext.class.path=C:\\Program Files\\NetBeans-13\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 process-classes org.codehaus.mojo:exec-maven-plugin:3.0.0:exec"
Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/3.0.0/exec-maven-plugin-3.0.0.pom
Progress (1): 2.7/14 kB
Progress (1): 5.5/14 kB
Progress (1): 8.2/14 kB
Progress (1): 11/14 kB
Progress (1): 14 kB
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/exec-maven-plugin/3.0.0/exec-maven-plugin-3.0.0.pom (14 kB at 28 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/50/mojo-parent-50.pom
Progress (1): 2.7/34 kB
Progress (1): 5.5/34 kB
Progress (1): 8.2/34 kB
Progress (1): 11/34 kB
Progress (1): 14/34 kB
Progress (1): 16/34 kB
Progress (1): 19/34 kB
Progress (1): 21/34 kB
Progress (1): 24/34 kB
Progress (1): 27/34 kB
Progress (1): 30/34 kB
Progress (1): 32/34 kB
Progress (1): 34 kB
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/50/mojo-parent-50.pom (34 kB at 656 kB/s)
-------------------------< it.horsa.devlab:p >--------------------------
Building p 1.0-SNAPSHOT
--------------------------------[ jar ]---------------------------------
--- maven-resources-plugin:2.6:resources (default-resources) @ p ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory C:\Users\luca\Documents\NetBeansProjects\p\src\main\resources
--- maven-compiler-plugin:3.1:compile (default-compile) @ p ---
Changes detected - recompiling the module!
Compiling 1 source file to C:\Users\luca\Documents\NetBeansProjects\p\target\classes
--- exec-maven-plugin:3.0.0:exec (default-cli) @ p ---
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.pom
Progress (1): 2.7/11 kB
Progress (1): 5.5/11 kB
Progress (1): 7.9/11 kB
Progress (1): 11/11 kB
Progress (1): 11 kB
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.pom (11 kB at 239 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.jar
Progress (1): 4.1/128 kB
Progress (1): 8.2/128 kB
Progress (1): 12/128 kB
Progress (1): 16/128 kB
Progress (1): 20/128 kB
Progress (1): 24/128 kB
Progress (1): 28/128 kB
Progress (1): 32/128 kB
Progress (1): 36/128 kB
Progress (1): 40/128 kB
Progress (1): 45/128 kB
Progress (1): 49/128 kB
Progress (1): 53/128 kB
Progress (1): 57/128 kB
Progress (1): 61/128 kB
Progress (1): 65/128 kB
Progress (1): 69/128 kB
Progress (1): 73/128 kB
Progress (1): 77/128 kB
Progress (1): 81/128 kB
Progress (1): 85/128 kB
Progress (1): 90/128 kB
Progress (1): 94/128 kB
Progress (1): 98/128 kB
Progress (1): 102/128 kB
Progress (1): 106/128 kB
Progress (1): 110/128 kB
Progress (1): 114/128 kB
Progress (1): 118/128 kB
Progress (1): 122/128 kB
Progress (1): 126/128 kB
Progress (1): 128 kB
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-artifact-transfer/0.10.1/maven-artifact-transfer-0.10.1.jar (128 kB at 1.9 MB/s)
Size: 0
[]
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 4.735 s
Finished at: 2022-03-28T16:01:51+02:00
------------------------------------------------------------------------
</pre>
As you can see the result is the same even if this is a different PC and a fresh installation
Do you think that my configuration could be screwed up when importing the previous Netbeans version environment during installation ?
This is my IDE log, showing some strange errors I can't explain.
[IDE.log.txt](https://github.com/apache/netbeans/files/8363775/IDE.log.txt)
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists