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

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

问题描述

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

Is there a way to prevent that the Java installation routine (e.g. jdk-7u1-windows-i586.exe) copies java.exe into C:\Windows\system32 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最新是至关重要的,尤其是位于Windows system32或syswow64文件夹中的Internet Explorer使用的JRE。

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 卸载程序功能,下载最新版本并重新安装

The solution is to uninstall java using the control panel uninstall programs feature, download most recent version and install again.

干杯!
Fernando

Cheers! Fernando

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

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