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