当前位置:网站首页>解决 Pocess finished with exit code 1 Class not found 和 Command line is too long. Shorten the command
解决 Pocess finished with exit code 1 Class not found 和 Command line is too long. Shorten the command
2022-08-11 10:15:00 【削尖的螺丝刀】
问题描述: 在运行Test测试类的时候,出现了标题描述的问题,我们先来看看第一个问题,也就是 —— Command line is too long. Shorten the command line via JAR manifest.
出现这个问题的解决方案在.idea配置文件里,解决方案是在.idea 配置文件下,修改 workspace.xml 文件里 <component name="PropertiesComponent"> 中的内容,
添加 <property name="dynamic.classpath" value="true" /> 进去,修改后的配置内容如下所示:
<property name="dynamic.classpath" value="true" />
接下来是 解决 Process finished with exit code 1 Class not found 问题,本人碰到过两种出现这个问题的场景,第一个就是 target 文件没有生成 test 的class内容,这个时候 删除 target文件重新运行即可,如果发现 target 文件夹下生成了你需要的class内容就解决了。
如果你尝试了上面的方法,还是出现 Process finished with exit code 1 Class not found 那就尝试修改 Project Structure 中的 JDK 配置,改成对应的,比如我这里改成了1.8:
以上是本人在运行测试类时碰到的两种场景解决方法,由于经常碰到,且解决方法都是上述内容,所以特此记录。 当然我在问题搜索中发现还有其他造成该错误的原因,但均不符合我的处理过程,所以不在本文讨论范围内 。
边栏推荐
- HDRP shader to get shadows (Custom Pass)
- 本地开发好的 SAP UI5 应用部署到 ABAP 服务器时,中文字符变成乱码的原因分析和解决方案
- MongoDB 非关系型数据库
- Software custom development - the advantages of enterprise custom development of app software
- 爆料!前华为微服务专家纯手打500页落地架构实战笔记,已开源
- OAK-FFC系列产品上手指南
- MySQL数据库基础_常用数据类型_表设计
- 力扣题解8/10
- How to improve the efficiency of telecommuting during the current epidemic, sharing telecommuting tools
- [Ext JS]11.14 SimXhr.js?_dc=1659315492151:65 Uncaught TypeError problem analysis and solution
猜你喜欢
HDRP shader gets pixel depth value and normal information
canvas图片操作
Six functions of enterprise exhibition hall production
网络模型(DeepLab, DeepLabv3)
The crawler is encapsulated into an api
深度神经网络与人脑神经网络哪些区域有一定联系?
同态加密简介HE
php将form表单内容提交到数据库后中文变成??(问号)
Oracle database use problems
HDRP shader to get shadows (Custom Pass)
随机推荐
snapshot standby切换
困扰所有SAP顾问多年的问题终于解决了
Oracle database use problems
突破次元壁垒,让身边的玩偶手办在屏幕上动起来!
Network Models (DeepLab, DeepLabv3)
Primavera Unifier custom report creation and print sharing
Convolutional Neural Network System,Convolutional Neural Network Graduation Thesis
【UOJ 454】打雪仗(通信题)(分块)
Dreamweaver网页作业——紫罗兰永恒花园动漫价绍网页 7页,含有table表格,js表单验证还有首页视频。以及列表页。浮
神经网络需要的数学知识,神经网络的数学基础
Segmentation Learning (loss and Evaluation)
VC6.0 +WDK 开发驱动的环境配置
【Prometheus】 Grafana数据与可视化
阿里二面:JVM调优你会吗?
Adobe LiveCycle Designer report designer
如何建立编程思想和提高编程思想
力扣打卡----打家劫舍
[Ext JS]11.14 SimXhr.js?_dc=1659315492151:65 Uncaught TypeError problem analysis and solution
【无标题】(完美解决)uni-app 小程序下拉刷新后刷新图标无法正常恢复的问题
【每日一题】640. 求解方程