1、打开程序的运行位置:

2、点击environment,把Shorten command line 改成 classpath file:

或者:
找到项目下的.idea/workspace.xml,在标签
<component name="PropertiesComponent">里添加一行属性:<property name="dynamic.classpath" value="true" />
本文介绍如何在IntelliJ IDEA中进行项目的运行配置调整,包括修改环境变量以使用classpathfile代替Shortencommandline的方法,以及如何在workspace.xml文件中启用动态类路径设置。
1、打开程序的运行位置:

2、点击environment,把Shorten command line 改成 classpath file:

或者:
找到项目下的.idea/workspace.xml,在标签
<component name="PropertiesComponent">里添加一行属性:<property name="dynamic.classpath" value="true" />

被折叠的 条评论
为什么被折叠?