java.io.IOException: The same input jar [E:\Jre\lib\rt.jar] is specified twice.

执行Maven Install打包的时候,出现以下错误信息:

[INFO] proguard jar: E:\maven\mvnRespo\net\sf\proguard\proguard-base\5.2\proguard-base-5.2.jar
 [proguard] ProGuard, version 5.2
 [proguard] java.io.IOException: The same input jar [E:\Jre\lib\rt.jar] is specified twice.
 [proguard]     at proguard.ConfigurationChecker.checkConflicts(ConfigurationChecker.java:216)
 [proguard]     at proguard.ConfigurationChecker.check(ConfigurationChecker.java:84)
 [proguard]     at proguard.ProGuard.execute(ProGuard.java:73)
 [proguard]     at proguard.ProGuard.main(ProGuard.java:538)

相同的输入的 jar [E:\Jre\lib\rt.jar] 指定了两次

我在POM文件里指定了一次:

<lib>${java.home}/lib/rt.jar</lib>

又在“proguard.conf”文件里指定了一次:

-libraryjars <java.home>/lib/rt.jar

删除其中一个就可以了。

时间: 2024-10-21 00:44:24

java.io.IOException: The same input jar [E:\Jre\lib\rt.jar] is specified twice.的相关文章

java.io.IOException: The same input jar is specified twice

简介: eclipse android proguard 打包时出现 java.io.IOException: The same input jar is specified twice 错误, 这里给出解决办法 升级到高版本的 android sdk 之后发现 proguard 打包app 时出现The same input jar ***.jar is specified twice 的错误,导致混淆失败无法打包出新版本, 百度google 都不能解决 愁死了. 通过一天的折腾人都要崩溃了,

java.io.IOException: Can&#39;t read [\jre\lib\rt.jar]

[proguard] java.io.IOException: Can't read [F:\e\java\jdk1.8.0_101\jre\lib\rt.jar] (Can't process class [com/oracle/net/Sdp$1.class] (Unsupported version number [52.0] for class format)) 不要只看前半段,关键信息是 Unsupported version number [52.0] 降低jdk版本到1.7 也许1

Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jre7

Maven编译时两则信息 (Workspace以及default classpath container) 博客分类: Java 使用Maven一年有余,却总是被两则不起眼的编译信息困扰,终想查明,这两则信息如下: Java代码   [INFO] Using Eclipse Workspace: D:\maven\workspace [WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\

Eclipse报错 due to restriction on required library C:/Java/jdk1.7.51/jre/lib/rt.jar 解决方案

Eclipse报错 due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方案 Eclipse 编译时报错: Access restriction:The type NEW is not accessible due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方法如下:  1.进入Project -

java.io.IOException: The input doesn&#39;t contain any classes. Did you specify the proper &#39;-injars&#39; opt

问题场景 在使用Maven + Proguard打包项目进行混淆时,提示以下错误: [proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] java.io.IOException: The input doesn't contain any classes. Did you specify the proper '-injars' options? [proguard] at proguard.InputRe

java.io.IOException: java.io.EOFException: Unexpected end of input stream错误

报错现象: Diagnostic Messages for this Task:Error: java.io.IOException: java.io.EOFException: Unexpected end of input stream at org.apache.hadoop.hive.io.HiveIOExceptionHandlerChain.handleRecordReaderNextException(HiveIOExceptionHandlerChain.java:121) at

java.io.IOException: The output jar is empty. Did you specify the proper &#39;-keep&#39; options?

执行Maven Install打包的时候,出现以下错误信息: [proguard] java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options? [proguard] at proguard.shrink.Shrinker.execute(Shrinker.java:171) [proguard] at proguard.ProGuard.shrink(ProGuard.java

spark程序异常:Exception in thread &quot;main&quot; java.io.IOException: No FileSystem for scheme: hdfs

命令: java -jar myspark-1.0-SNAPSHOT.jar myspark-1.0-SNAPSHOT.jar hdfs://single:9000/input/word.txt hdfs://single:9000/output/out1 错误信息: .......... 14/11/23 06:14:18 INFO SparkDeploySchedulerBackend: Granted executor ID app-20141123061418-0011/0 on hos

sqoop1.4.5 导入 hive IOException running import job: java.io.IOException: Hive exited with status 1

sqoop 导入 hive hive.HiveImport: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.thrift.EncodingUtils.setBit(BIZ)B ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Hive exited with status 1