Re: How to run a program in Netbeans 17 with the -D option
Tim, I can imagine you are excited about your program, but can you please stop advertising it on the NetBeans mailing lists? every single mail from you attempts to convince people to download it from your page. this is not a platform for advertisements. -mbien On 22.04.23 05:31, Tim de Vries wrote: Hello all, If you are in Peter's situation and you need a secondary test application, to verify your code may be correct, there is tecreations Launcher and CommandLauncher. Launcher works with an class path, but prefers /projectDir. Command launcher requires you to specify its' application path, ie c:\temp\my-prog.exe arg1 arg2 etc... They are both available in ca.tecreation.apps.launcher.* via https://tecreations.ca/java/downloads/release/tecreations-04.0jar is the latest stable version, currently working on 0.5.0. Tim On 21/04/2023 10:30 a.m., Brad K. wrote: Peter -- -D arguments are arguments to the JVM. Under your project's properties is the Run item. (File -> Project Properties and select the Run item). In that UI, put your -Drasberry.camera.enabled=true in the "VM Options" text area. Note: This works mostly only on 'jar' based programs that start inside a 'public static void main(String[] args)' class. Web stuff is different. Also note that if you use the configurations options, you can set up multiple 'runners' with different program and JVM settings. On 4/20/2023 12:02 PM, Peter Ivarsson wrote: Hi I want to run my program in NetBeans with the -D option java -jar -Drasberry.camera.enabled=true Peter
Re: How to run a program in Netbeans 17 with the -D option
Hello all, If you are in Peter's situation and you need a secondary test application, to verify your code may be correct, there is tecreations Launcher and CommandLauncher. Launcher works with an class path, but prefers /projectDir. Command launcher requires you to specify its' application path, ie c:\temp\my-prog.exe arg1 arg2 etc... They are both available in ca.tecreation.apps.launcher.* via https://tecreations.ca/java/downloads/release/tecreations-04.0jar is the latest stable version, currently working on 0.5.0. Tim On 21/04/2023 10:30 a.m., Brad K. wrote: Peter -- -D arguments are arguments to the JVM. Under your project's properties is the Run item. (File -> Project Properties and select the Run item). In that UI, put your -Drasberry.camera.enabled=true in the "VM Options" text area. Note: This works mostly only on 'jar' based programs that start inside a 'public static void main(String[] args)' class. Web stuff is different. Also note that if you use the configurations options, you can set up multiple 'runners' with different program and JVM settings. On 4/20/2023 12:02 PM, Peter Ivarsson wrote: Hi I want to run my program in NetBeans with the -D option java -jar -Drasberry.camera.enabled=true Peter
Re: How to run a program in Netbeans 17 with the -D option
Peter -- -D arguments are arguments to the JVM. Under your project's properties is the Run item. (File -> Project Properties and select the Run item). In that UI, put your -Drasberry.camera.enabled=true in the "VM Options" text area. Note: This works mostly only on 'jar' based programs that start inside a 'public static void main(String[] args)' class. Web stuff is different. Also note that if you use the configurations options, you can set up multiple 'runners' with different program and JVM settings. On 4/20/2023 12:02 PM, Peter Ivarsson wrote: Hi I want to run my program in NetBeans with the -D option java -jar -Drasberry.camera.enabled=true Peter
Re: How to run a program in Netbeans 17 with the -D option
See, for instance: https://stackoverflow.com/questions/39820709/netbeans-8-1-java-how-to-add-command-line-arguments-when-you-want-to-run-java It really depends on the kind of project you're using. For Maven or Gradle projects this is different. Cheers, Antonio On 20/4/23 19:02, Peter Ivarsson wrote: Hi I want to run my program in NetBeans with the -D option java -jar -Drasberry.camera.enabled=true Peter - 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
How to run a program in Netbeans 17 with the -D option
Hi I want to run my program in NetBeans with the -D option java -jar -Drasberry.camera.enabled=true Peter