I want to either display a message in the console or a pop up, so in case a parameter is not specified, I want to know to which should I display
Something like:
You can get all the input arguments with RuntimeMBean.getInputArguments(), this can be used to detect when debugging is enabled.
EDIT: However, the -jar argument isn't one of them. :(