Thanks for welcoming me to the community!
I\'d like to get some help regarding Run/Debug configuration in IntelliJ IDEA. We use a .jar file and I need to setup a run
Welcome Manan! You should be able to create a target for the jar application in IntelliJ by following these steps.
EDIT: Upon initially reading your question I didn't see you already had the steps for creating a new jar configuration, but I'll leave the images here for future readers.
First, open your run/debug configurations in the top right:
Then create a new configuration with the plus:
Enter the appropriate information for the jar. I've edited and shown what you should use. (Comments aren't valid and for demonstration)
You can run or debug the configuration by selecting from the dropdown and selecting the required button. ctrl-d debugs and ctrl-r runs by default.
To expand upon what you should enter for the fields (see the image above for your exact configuration):
-Xmx1200m
sets the maximum RAM of the JVM. I tested what I showed for your configuration. You can separate them with spaces as you would on the command-line.java programName arguments
.Default
.Note you can directly run your Maven project without creating a jar first, just in case that's what you're doing. Also, the -XX:MaxPermSize=256M
appears to be deprecated and using address 30306
caused an error when I tested, but an arbitrary 5005
did work.