gpt4 book ai didi

java.io.IOException : Can't process class [class path] (Unsupported version number [55. 0](最大 54.0,Java 10))

转载 作者:行者123 更新时间:2023-12-01 22:35:41 28 4
gpt4 key购买 nike

我无法编译我的同事可以成功编译的 java 代码。

我有 JRE 8u221。

Proguard 版本为 6.03

来 self 的 build.bat 输出:

距离混淆: [echo] 提取 Objfuscator [解压缩] 扩展: c:\Workspaces\abcd\efg\Trunk\ESDE\Scripts\proguard\proguard6.0.3.zip 到 c:\Workspaces\abcd\efg\Trunk\ESDE\Scripts\proguard [回声] 震动基地 ESDE [复制] 将 1 个文件复制到 c:\Workspaces\abcd\efg\Trunk\ESDE\Scripts\proguard

 [java] ProGuard, version 6.0.3java.io.IOException: Can't read [c:\Workspaces\abcd\efg\Trunk\ESDE\Scripts\proguard\sdeIn.jar] (Can't process class [company/application/actions/AboutAction.class] (Unsupported version number [55.0] (maximum 54.0, Java 10)))

[java]
[java] Reading input...
[java] at proguard.InputReader.readInput(InputReader.java:214)Reading program jar [c:\Workspaces\abcd\efg\Trunk\ESDE\Scripts\proguard\sdeIn.jar]
[java]
[java] at proguard.InputReader.readInput(InputReader.java:184)
[java] at proguard.InputReader.readInput(InputReader.java:162)
[java] at proguard.InputReader.execute(InputReader.java:90)
[java] at proguard.ProGuard.readInput(ProGuard.java:255)
[java] at proguard.ProGuard.execute(ProGuard.java:96)
[java] at proguard.ProGuard.main(ProGuard.java:572)
[java] Caused by: java.io.IOException: Can't process class [company/application/actions/AboutAction.class] (Unsupported version number [55.0] (maximum 54.0, Java 10))
[java] at proguard.io.ClassReader.read(ClassReader.java:114)
[java] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
[java] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
[java] at proguard.io.JarReader.read(JarReader.java:83)
[java] at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
[java] at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
[java] at proguard.InputReader.readInput(InputReader.java:210)
[java] ... 6 more
[java] Caused by: java.lang.UnsupportedOperationException: Unsupported version number [55.0] (maximum 54.0, Java 10)
[java] at proguard.classfile.util.ClassUtil.checkVersionNumbers(ClassUtil.java:148)
[java] at proguard.classfile.io.ProgramClassReader.visitProgramClass(ProgramClassReader.java:101)
[java] at proguard.classfile.ProgramClass.accept(ProgramClass.java:430)
[java] at proguard.io.ClassReader.read(ClassReader.java:91)
[java] ... 12 more
[java] Java Result: 1

构建失败c:\Workspaces\abcd\efg\Trunk\ESDE\build.xml:877:警告:找不到要复制的文件 c:\Workspaces\abcd\efg\Trunk\ESDE\Scripts\proguard\sde.jar。

问题:

1) “版本 55.0”?版本...什么?

Proguard 版本 = 6.0.3。

2) “Java 10”?不。

java-版本java版本“1.8.0_221”Java(TM) SE 运行时环境(版本 1.8.0_221-b11)Java HotSpot(TM) 64 位服务器 VM(内部版本 25.221-b11,混合模式)

这是 Java 8,而不是 10。

最佳答案

company.application.actions.AboutAction 类已针对 Java 11 进行编译。

ProGuard 6.0 仅支持 Java 10。

您需要 ProGuard 6.1 才能支持 Java 11。

参见Version historyProGuard Manual :

Version 6.1 (May 2019)

  • ...
  • [PGD-188] Added support for Java 10, 11, and 12.
  • ...

Version 6.0 (Feb 2018)

  • ...
  • [PGD-186] Added support for Java 10.
  • ...

关于java.io.IOException : Can't process class [class path] (Unsupported version number [55. 0](最大 54.0,Java 10)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58527481/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com