Hi All, I have a NetBeans platform application and I'd like to do some APM (Application Performance Monitoring) using an Elastic cluster I've got set up. The Elastic APM doco says you need to add the -javaagent flag to their jar like below.
java -javaagent:/path/to/elastic-apm-agent-<version>.jar \ -Delastic.apm.service_name=my-application \ -Delastic.apm.server_urls= http://localhost:8200 \ -Delastic.apm.secret_token= \ -Delastic.apm.environment=production \ -Delastic.apm.application_packages=org.example \ -jar my-application.jar The problem is that a NetBeans platform application does not compile down to a single jar like a standalone Java app. For my application I created a distribution zip, unzipped it and from the bin folder tried to run my app and pass these arguments but I get the following error: Unknown option -javaagent:./elastic-apm-agent-1.24.0.jar I've also tried adding these options to the run.args.extra in the project.properties file and that fails as well. Is there a way I can pass the javaagent to my NetBeans platform application? Thank you.
