问题提示
Command line is too long. Shorten command line for TestHdfs or also for Application default configur
解决方案
在 .idea/workspace.xml
的节点<component name="PropertiesComponent">
下面新增:
<property name="dynamic.classpath" value="true" />
解释
该选项控制如何将classpath传递给JVM:通过命令行或通过文件。大多数操作系统都有最大的命令行限制,当它超过时,IDEA将无法运行您的应用程序。 当命令行长于32768个字符时,IDEA建议您切换到动态类路径。长类路径被写入文件,然后由应用程序启动器读取并通过系统类加载器加载。 如果您对实施细节感兴趣,可以查看IDEA社区版的源代码,JdkUtil.java文件,setupJVMCommandLine方法。
解释引用: https://stackoverflow.com/questions/4853540/what-does-the-dynamic-classpath-flag-do-intellij-project-settings
来源:CSDN
作者:ldx2
链接:https://blog.csdn.net/u013084266/article/details/104173020