Could not find jar tool executable问题解决

    xiaoxiao2021-03-26  13

    Could not find jar tool executable问题解决 eclipse 中,在用PROGUARD生成混淆包Obfuscated Package的时候出错: Could not find jar tool executable. The jar tool requires a full JDK installation Specify a full JDK installation int the Java preferences. Reason Could not find jar tool executeable 需要一个完整的JDK安装,但是我已经装了完正的JDK。。 解决方案: 在“窗口--首选项--java--已经安装的JRE”中,对应英文为“windows-preferences-java-installed jres”把已经安装的JRE的目录修改为jdk的安装目录。。 原因: 在混淆的过程中,混淆工具产生的JAR文件需要被再次预校验。 此时,预处理工具会从环境变量中寻找并调用jar工具的可执行文件。 EclipseME一般会在JRE安装目录下面去寻找。如果发生这个问题了,肯定是因为EclipseME在已经安装的JRE(java的子类)中找到了至少一个JDK。这种情况下,在Windows下,Eclipse会默认识别JRE而不是JDK。
    转载请注明原文地址: https://ju.6miu.com/read-450255.html

    最新回复(0)