zl程序教程

您现在的位置是:首页 >  其他

当前栏目

【异常】IDEA提示If the run configuration uses “classpath file“, please change it to “@argfile“.

ITIDEA异常 to The File 提示 if
2023-09-14 09:14:15 时间

一、异常

E:\jdk11\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55628,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -javaagent:D:\Users\uidq0884\AppData\Local\JetBrains\IntelliJIdea2021.1\captureAgent\debugger-agent.jar -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2021.1.2\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper D:\Users\uidq0884\AppData\Local\Temp\idea_classpath204121783 
已连接到目标 VM, 地址: ''127.0.0.1:55628',传输: '套接字''
`CommandLineWrapper` is ill-suited for launching apps on Java 9+.
If the run configuration uses "classpath file", please change it to "@argfile".
Otherwise, please contact support.
与目标 VM 断开连接, 地址为: ''127.0.0.1:55628',传输: '套接字''

进程已结束,退出代码为 1

二、错误说明

因为出现了这个报错“ !invalid format: `命令行过长”,之前解决过,见文章如下:

【异常】IDEA运行‘XXXApplication‘ 时出错: !invalid format: `命令行过长。要为 {0}{1, choice, 0# 或也为

调整之后,还是不行。可能调整的有问题

三、错误解决

那就只能这样了。将缩短命令行

设置【缩短命令行 / Shorten command line】选项为【@argfile(Java 9+)】即可

如IDEA没有显示【Shorten command line】选线,则需要自行设置其显示,在这里插入图片描述

四、参考文章

【异常】IDEA运行‘XXXApplication‘ 时出错: !invalid format: `命令行过长。要为 {0}{1, choice, 0# 或也为