Tag Archives: Error running xxxApplication Command line is too long

Solve the problem of error running xxxapplication command line is too long when compiling and running IntelliJ idea

This article is an original article of Joshua 317. Please note that it is reproduced from Joshua 317 blog   https://www.joshua317.com/article/99

Idea reports an error when compiling the project, and the saved information is as follows:

15:42	Error running 'xxxxApplication': Command line is too long. Shorten command line for xxxxApplication or also for Spring Boot default configuration.

 

 

 

Solution 1

Found in the project folder. Idea/workspace.xml

<component name="PropertiesComponent">

  ...

</component>

Then add a row of attributes to solve the problem:

<property name="dynamic.classpath" value="true" />

Solution 2

Open the running configuration of the program and change short command line to jar manifest or classpath file , as shown in the figure:

 

 

 

 

 

 

 

This article is an original article of Joshua 317. Please note that it is reproduced from Joshua 317 blog   https://www.joshua317.com/article/99