I am working on a Maven- and 'NetBeans Platform'-based Java desktop application. My use case requires setting a system property as the very first step before anything else happens. I need to do this in the main
method, because using a static
block in the ModulInstall
is too late for my requirements. The challenge I'm facing is that I can't locate the main
method in my 'NetBeans Platform'-based Java desktop application.
Can someone guide me on where to find the main
method in a 'NetBeans Platform'-based application, or how I can write my own main
method for this type of application? I appreciate any insights or solutions to this issue.
I successfully resolved my issue with the guidance provided in this post: https://stackoverflow.com/a/12908982/13583700
I utilized a custom
main
method to set the system property as the initial step, ensuring it precedes any other actions. Afterward, I invoked NetBeans'smain
method.