我想安装https://github.com/cryptomator/cli,这需要: JRE 8:http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html JCE:http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
在我的Mac上,首选项> Java,Java选项卡,我看到Platform 1.8,产品1.8.0_121,路径1.8 1.8.0_121 http://java.sun.com/products/autodl/j2se / Library / Internet Plug-Ins / JavaAppletPlugin.plugin / Contents / Home / bin / java
所以我认为我已经拥有JRE 8了。如何判断我是否有JCE,如果不存在JCE,如何正确安装?
答案 0 :(得分:1)
您需要复制从此处下载的.jar文件
https://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
并将其粘贴到Java Home字典中:
<java-home>/lib/security
在我的情况下,Java Home在这里:
/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre
请注意, lib 文件夹应位于 jre 文件夹中,原因是 ... / Home / 具有 lib 文件夹
答案 1 :(得分:-2)
以下是安装说明:
1)下载无限强度的JCE策略文件。
2)解压缩并解压缩下载的文件。
This will create a subdirectory called jce.
This directory contains the following files:
README.txt This file
local_policy.jar Unlimited strength local policy file
US_export_policy.jar Unlimited strength US export policy file
3)安装无限强度策略JAR文件。
In case you later decide to revert to the original "strong" but
limited policy versions, first make a copy of the original JCE
policy files (US_export_policy.jar and local_policy.jar). Then
replace the strong policy files with the unlimited strength
versions extracted in the previous step.
The standard place for JCE jurisdiction policy JAR files is:
<java-home>/lib/security [Unix]
<java-home>\lib\security [Windows]
在README.txt中显然已经解释过,您可以在下载zip文件(jce_policy-8.zip)后获取它。