There are two ways:
Solution:
1. Modify. Idea \ workspace.xml under the project and find the tag
< component name=”PropertiesComponent”>
add a line to the label
< roperty name=”dynamic.classpath” value=”true” />
2. In run -> Modify the red circle in edit configuration and select