First find the idea/workspace.xml file in the project, then find the
<component name="PropertiesComponent"></component >tag, and then add a line to the component tag
<property name="dynamic.classpath" value="true" />
This option controls how the classpath is passed to the JVM: through the command line, or through a file. Most operating systems have a maximum command line limit. When this limit is exceeded, IDEA will not be able to run applications. When the command line length exceeds 32768 characters, IDEA recommends that you switch to the dynamic classpath. The long class path is written to a file, which is then read by the application launcher and loaded by the system class loader. If you are interested in implementation details, you can check IDEA Community edition source code, JdkUtil.java file, setupJVMCommandLine method.
- Solution of IntelliJ idea running command line is too long [Two Methods]
- Solve the problem of error running xxxapplication command line is too long when compiling and running IntelliJ idea
- [How to Solve] Command line is too long. Shorten command line
- [Solved] JAVA Run Error: Error: Could not find or load main class
- Exception in thread “main” java.lang.ClassCastException
- Spring Boot Start Error: Exception in thread “main” java.lang.StringIndexOutOfBoundsException: …
- Error running ‘JeecgSystemApplication‘: Command line is too long. Shorten command line for JeecgSys
- The solution of javaw.exe in your current path
- Error running ‘JeecgSystemApplication’: Command line is too long. Shorten command line for JeecgSystemApplication or also for Spring Boot default configuration.