简体   繁体   English

无法将UX Studio与Java7一起使用-不必要升级到Java8

[英]Unable to use UX Studio with java7 - upgrade to java8 not neccessary

After latest Demandware update I couldn't work with UX Studio anymore. 最新的Demandware更新之后,我无法再使用UX Studio。 I have found that java8 is now required. 我发现现在需要java8。

Since I don't want to install java8, is it any way to make it work with java 7? 由于我不想安装java8,是否有使其与Java 7兼容的任何方法?

I just want to share one way to overcome this problem if you can't install Java 8 on your machine. 如果您不能在计算机上安装Java 8,我只想分享一种克服此问题的方法。

Since this occurs only because SSL certificate are switched to TLS1.1 you could still use Java 7, just one file should be copied from Java 8. 由于这仅是因为SSL证书已切换到TLS1.1而发生,因此您仍然可以使用Java 7,仅应从Java 8复制一个文件。

Replace the default trusted keystore file - cacerts, with the one from java 8. This is how it can be done: 用Java 8中的一个替换默认的受信任密钥库文件cacerts。这是可以完成的操作:

  1. Locate file named "cacerts" inside Java 7 lib directory, 在Java 7 lib目录中找到名为“ cacerts”的文件,
  2. Rename it ( for a backup ), 重命名(用于备份),
  3. find the file with the same name used by Java 8, 查找与Java 8使用相同名称的文件,
  4. copy the file found in Java 8 to Java 7 将Java 8中找到的文件复制到Java 7中

This method doesn't necessarily mean you need to install Java 8. You just need to find the file cacerts which can be copied from a machine that has it installed, or you can unpack the downloaded archive. 此方法不一定意味着您需要安装Java8。您只需要找到可以从安装了它的计算机上复制的文件cacerts,或者可以解压缩下载的归档文件。 It is the fastest way to solve this issue. 这是解决此问题的最快方法。 I have just tested this and it works. 我刚刚对此进行了测试,并且可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM