IDEA启动报错文件名或扩展名太长原创
金蝶云社区-JeremyG
JeremyG
6人赞赏了该文章 5413次浏览 未经作者许可,禁止转载编辑于2022年07月14日 14:25:16

问题:

IDEA启动苍穹服务,报错文件名或扩展名太长。

Execution failed for task ':DebugServer.main()'.

> A problem occurred starting process 'command 'D:/installpath/java/jdk1.8/bin/java.exe''


* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

 Run with --scan to get full insights.

image.png


解决:

(不同版本的IDEA配置方式不一样,可自行百度)

1.编辑项目配置

image.png


2.修改选择,找到Shorten command line

image.png


3.默认应该是none,可以改成其他两个,点击保存。再重新启动即可

image.png


后续:

关于Shorten command line的详细介绍,可以自行搜索了解。这里有个写的比较有趣的。

https://www.jianshu.com/p/8322b3b17040 

赞 6