IDEA运行 Java命令,Command line is too long.

Windows下, https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation 命令长度不能超过 8191 个字符。

解决办法:http://stackoverflow.com/questions/201816/how-to-set-a-long-java-classpath-in-windows 

Linux 下,可使用  getconf ARG_MAX 命令,查看最大命令长度。

posted @ 2022-04-27 00:02  bpzj  阅读(192)  评论(0)    收藏  举报