Error running Application. Command line is too long.

简介: 【2月更文挑战第2天】Error running Application. Command line is too long. 问题处理

问题背景

今天由于业务需要,下载了一个开源项目想要在本地运行,处理完部分报错信息后,开始启动项目,启动项目然后报错,报错信息

Error running Application. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.

image.png

问题处理

当看到这个错误,虽然错误原因提示很明显,但是过去不曾遇到过这样的错误提示,于是在网上搜索了一下相关处理方案,然后尝试了一下可以的。这里记录下来防止以后出现相同问题时没有处理方案。Error running Application. Command line is too long. 这个错误的大致意思就是启动命令行太长了,那么只需要设置启动参数就可以解决了。

点击【Edit  Configurations】

image.png

进入项目启动参数编辑页面,点击【Modify options】

image.png

勾选【Shorten command line】

image.png

选择classpath file后点击【Apply】-【OK】

image.png

然后再重新启动项目就可以了。


相关文章
|
6月前
|
Java
IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication or also for App
IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication or also for App
58 0
|
6月前
|
Java
IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication or also for App
IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication or also for App
43 0
|
7月前
|
Java Spring
Command line is too long. Shorten command line for Application or also for Spring Boot default confi
Command line is too long. Shorten command line for Application or also for Spring Boot default confi
14 1
|
7月前
|
Java
【异常】SpringBoot报错Command line is too long.Shorten command line for Application or also for Applicatio
【异常】SpringBoot报错Command line is too long.Shorten command line for Application or also for Applicatio
31 0
|
2月前
|
JSON JavaScript 前端开发
解决js中Long类型数据在请求与响应过程精度丢失问题(springboot项目中)
解决js中Long类型数据在请求与响应过程精度丢失问题(springboot项目中)
42 0
|
2月前
|
编译器 C语言
c语言中long的作用类型
c语言中long的作用类型
29 0
|
7月前
|
Java
【面试题精讲】Java超过long类型的数据如何表示
【面试题精讲】Java超过long类型的数据如何表示
|
2月前
|
存储
TS 自定义结构Long与number类型相互转换
TS 自定义结构Long与number类型相互转换
|
3月前
|
Oracle 关系型数据库 数据库
Flink Sink to Oracle 存在字段CLOB类型,如何处理错误”ORA-01461: 仅能绑定要插入LONG的LONG值“
做Flink CDC同步数据过程中,目标是Oracle数据库,其中某个字段较大被设置为CLOB类型,其中会遇到异常,”ORA-01461: 仅能绑定要插入LONG的LONG值“
|
4月前
|
存储 前端开发 JavaScript
由Long类型引发的生产事故
由Long类型引发的生产事故