How to set startup / debug configuration in IntelliJ IDEA using jar file?

Thanks for inviting me to the community!

I would like to get some help regarding the Run / Debug configuration in IntelliJ IDEA. We are using a .jar file and I need to configure the launch configuration in my IDE. I go to Run> Change Configurations> JAR Application and then various options will appear. I have a .jar file, but you want to know what properties you need to set in which fields. We use the .bat file to run the .jar, and I post the same below.

Can someone please look at the start.bat file and tell me what I need to download my Run / Debug options?

java -Djsse.enableSNIExtension=false -Xmx1200m -XX:MaxPermSize=256M  -agentlib:jdwp=transport=dt_socket,server=y,address=30306,suspend=n -jar mac-quickstart-2.0.jar -gui

Here is what I see in my IntelliJ window:

enter image description here

, Maven IntelliJ ( .pom). , !

+4
1

! jar IntelliJ, .

: , .

/ :

enter image description here

:

enter image description here

. , . ( )

enter image description here

, . ctrl-d debugs ctrl-r .

enter image description here

, (. ):

  • jar: . , , .
  • VM: JVM. , -Xmx1200m JVM. , . , .
  • : , , java programName arguments.
  • , . key = jsse.enableSNIExtension value = false. , D, , , . , .
  • JRE: , .
  • classpath: , Default.
  • : : .

, Maven, , , . , -XX:MaxPermSize=256M, , , 30306 , 5005.

+7

Source: https://habr.com/ru/post/1671563/


All Articles