[Java/IDE] IDEA运行Java类时报错:Error running 'MainTest': Command line is too long. Shorten command line for MainTest or also for Application default configuration

报错原因

Java项目启动命令过长

解决方法

点击项目启动配置项 -> shorten command line 选项选择 classpath file 或 java manifest 选项 -> 重新启动工程运行即可

参考文献

posted @ 2020-07-03 13:52  千千寰宇  阅读(1122)  评论(0编辑  收藏  举报