如何防止 java.exe 安装在 Windows 的 system32 中? [英] How to prevent that java.exe is installed in Windows' system32?

查看:15
本文介绍了如何防止 java.exe 安装在 Windows 的 system32 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法防止Java安装例程(例如jdk-7u1-windows-i586.exe)将java.exe复制到C:Windowssystem32 目录?

Is there a way to prevent that the Java installation routine (e.g. jdk-7u1-windows-i586.exe) copies java.exe into C:Windowssystem32 directory?

我必须在客户端的笔记本电脑上安装我的软件,而且我不想破坏机器上已经安装的其他 Java 应用程序.换句话说,我想安装一个仅由我的软件使用的私有 JRE.

I have to install my software on a client's laptop and I don't want to break other Java applications which are already installed on the machine. In other words I want to install a private JRE which is only used by my software.

到目前为止,我已将已安装的 JRE 从我的计算机复制到客户端的计算机.

By now, I copied an already installed JRE from my computer to the client's machine.

推荐答案

我昨天发现 Windows 上的 Java 版本存在问题,正如您所知,这些天保持 Java 最新是至关重要的,尤其是Internet Explorer 使用的JRE 位于Windows system32 或syswow64 文件夹中.

I discovered yesterday that there is a problem with Java versions on Windows, as you know keeping java up to date these days is critical, especially the JRE used by Internet explorer located in the Windows system32 or syswow64 folder.

您可以在 C: 驱动器中搜索 java 并查看它找到的各种可执行文件,以确定这种情况是否适用于特定系统.

You can perform a search for java in your C: drive and look at the various executable files it finds to determine if the situation applies on a specific system.

经过一些研究,我发现当 Java 更新程序 运行时,它只更新安装在 JAVA 主目录中的文件,通常位于程序文件中,但它不更新位于 windows 系统文件夹中的文件.因此,由于系统文件夹位于默认系统 PATH 中,Internet Explorer 的使用继续使用旧版本的 JAVA 文件( java.exe 、 javaw.exe 、 javaws.exe )

After doing some research I find that when the Java updater runs, it only updates the files installed in the JAVA home , usually located on the program files, but it does NOT update the files located in the windows system folder. As a result and since the system folder is in the default system PATH , the usage of Internet Explorer continues to use an old version of the JAVA files ( java.exe , javaw.exe , javaws.exe )

解决方案使用控制面板卸载java卸载程序功能,下载最新版本重新安装.

干杯!费尔南多

这篇关于如何防止 java.exe 安装在 Windows 的 system32 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆