关于jar文件反编译

最近在搞tck测试,想要将其日志转换成apdu脚本,结果出现默认输出最大长度不足,输出被省略现象。

软件log出现的错误信息

...
Output overflow:
JavaTest Harness has limited the test output to the text to that
at the beginning and the end, so that you can see how the
test began, and how it completed.

If you need to see more of the output from the test,
set the system property javatest.maxOutputSize to a higher
value. The current value is 100000
...

查找帮助文档的解释
在这里插入图片描述

java -Djavatest.maxOutputSize=200000 -jar lib/javatest.jar .... 

搞笑的,命令行后面弄个省略号,导致我们怎么设置都失败。

为了解决问题,我们就只能反编译jar文件了,看他是怎么实现的。

在这里插入图片描述
一段段看代码,终于找到具体参数,解决问题。

java -Djavatest.maxOutputSize=500000 -Xbootclasspath/p:lib/jc-scio.jar -Djavatest.security.noSecurityManager=true -jar lib/javatest.jar
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值