IDEA启动应用时报错:错误: 找不到或无法加载主类 @C:\Users\xxx\AppData\Local\Temp\idea_arg_filexxx

IDEA启动应用时报错,详细错误消息如下:

C:\devel\jdk1.8.0_201\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:65267,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" -javaagent:C:\Users\03451J672\AppData\Local\JetBrains\IntelliJIdea2023.2\groovyHotSwap\gragent.jar -javaagent:C:\Users\03451J672\AppData\Local\JetBrains\IntelliJIdea2023.2\captureAgent\debugger-agent.jar=file:/C:/Users/03451J672/AppData/Local/Temp/capture4.props -Dfile.encoding=UTF-8 @C:\Users\03451J672\AppData\Local\Temp\idea_arg_file2001829779 com.ibm.banking.musemvp.parameter.ParameterApplication
Connected to the target VM, address: '127.0.0.1:65267', transport: 'socket'
错误: 找不到或无法加载主类 @C:\Users\03451J672\AppData\Local\Temp\idea_arg_file2001829779
Disconnected from the target VM, address: '127.0.0.1:65267', transport: 'socket'

Process finished with exit code 1

重新编译也不能解决问题,各种尝试,终于找到解决办法如下:

到run/debug configurations里,把对应的应用Shorten command lines由none改成JAR manifest,如图:

相关推荐
安亿10310 分钟前
linux下的日志编写
linux·服务器·c语言·软件构建
咩咩大主教11 分钟前
C++在Linux实现多线程和多进程的TCP服务器和客户端通信
linux·服务器·c语言·开发语言·c++·网络协议·tcp/ip
蓝染-惣右介12 分钟前
【若依RuoYi-Vue | 项目实战】帝可得后台管理系统(二)
java·前端·后端·vue·springboot
齐 飞16 分钟前
Java接口和抽象类的区别
java·笔记·后端
Xiu Yan17 分钟前
LeetcodeTop100 刷题总结(一)
java·数据结构·算法·链表·矩阵·哈希算法·数组
Rainyocode23 分钟前
Java为什么不直接实现Iterator接口,而是实现Iterable?
java
麻木的根号三23 分钟前
【C++初阶】探索STL之——vector
java·开发语言·c++
小羊瑞士27 分钟前
代理模式---静态代理和动态代理
java·代理模式
(⊙o⊙)~哦33 分钟前
spring boot 定时器配置
java·spring boot·后端
伯牙碎琴1 小时前
八、TOGAF(架构治理Architecture Governance)
java·微服务·架构