The following error is reported when the test case is started:
Command line is too long. Shorten command line for XXXXXXTest. or also for JUnit default configuration?
Error running ‘XXXXXXXXXX.rmLogRecordOverDue’:
Command line is too long
workspace.xml file, add the following in
<property name="dynamic.classpath" value="true" />
It is also possible that the configuration file cannot be modified and will be automatically deleted after modification, so you can see solution 2
Modify the startup scheme of local test cases as
jar mainfest to start
Found multiple occurrences of org.json.JSONObject on the class path:
You may wish to exclude one of them to ensure predictable runtime behavior
Add to pomz: com.vaadin.external.google dependency ignore can be
When we use idea to import packages related to servlets, we sometimes encounter errors, which leads to the problem that servlets cannot recognize. In fact, the reason for the problem is very simple, that is, we can’t find packages related to servlets in JDK
1. Find the installation directory of Tomcat, here is C:\Program Files\Apache Software Foundation\Tomcat 8.5\lib (Note: not everyone’s directory is this, need to be based on the actual situation of your computer’s installation directory), find the Servlet-api.jar This file, copy it
2. then go to the JDK installation directory: C:\Program Files\Java\jdk1.8.0_241\jre\lib\ext, find the ext folder, and then copy the Servlet-api.jar file just copied to this folder
3. Back to the idea, the problem is solved, if the idea is still reporting errors, restart the idea refresh
Failed to start idea
There is a problem with the configuration file
Find the path where idea loads the cache
Set idea64 exe. The vmoptions parameter is adjusted reasonably, and the error parameters are removed.
You can start successfully!!!