When using IDEA to run a test class, it prompts an error
CreateProcess error=206, The file name or extension is too long.
IDEA version: 2021.2.3
The main reason for this error is that the startup parameters brought by java startup exceed the maximum length limit of the window.
This error may be related to the version, and the solution is different;
The solution is as follows:
1. Open edit configurations and find short command line
If you can’t find this option, click the modify options option and check the menu; there
are three options in total, and the default option is none;
none: This is the default option, idea will not shorten the command line. If the command line exceeds the O