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,如图:

相关推荐
Warren989 分钟前
Springboot中分析SQL性能的两种方式
java·spring boot·后端·sql·mysql·intellij-idea
Distance失落心1 小时前
idea任意版本的安装
java·ide·java-ee·eclipse·intellij-idea
Aphelios3801 小时前
Linux 下 VIM 编辑器学习记录:从基础到进阶(下)
java·linux·学习·编辑器·vim
独孤求败Ace1 小时前
第46天:Web开发-JavaEE应用&原生和FastJson反序列化&URLDNS链&JDBC链&Gadget手搓
java·spring·java-ee
Ting-yu1 小时前
项目实战--网页五子棋(匹配模块)(4)
java
优人ovo1 小时前
3分钟idea接入deepseek
java·ide·intellij-idea
计算机学姐1 小时前
基于SpringBoot的校园消费点评管理系统
java·vue.js·spring boot·后端·mysql·spring·java-ee
猎人everest1 小时前
Spring Boot数据访问(JDBC)全解析:从基础配置到高级调优
java·spring boot·后端
m0_674031432 小时前
详解Tomcat下载安装以及IDEA配置Tomcat(2023最新)
java·tomcat·intellij-idea
m0_748240022 小时前
记录 idea 启动 tomcat 控制台输出乱码问题解决
java·tomcat·intellij-idea