Solution:
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" />
principle:
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.
Similar Posts:
- Solution of IntelliJ idea running command line is too long [Two Methods]
- [Solved] Idea Error: Error running ‘Application‘: Command line is too long
- [Solved] JAVA Error: Error running ‘ModuleEmptyApplication’: Command line is too long. Shorten command line for ModuleEmptyApplication or also for Spring Boot default configuration.
- 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
- Thread.currentThread().getContextClassLoader()Class.getClassLoader()
- [Solved] JAVA Run Error: Error: Could not find or load main class
- Exception in thread “main” java.lang.ClassCastException
- [Solved] TypeError: Cannot read properties of undefined (reading ‘templateName’)
- Spring Boot Start Error: Exception in thread “main” java.lang.StringIndexOutOfBoundsException: …