Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent that java.exe is installed in 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?

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.

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

like image 982
rmoestl Avatar asked Nov 22 '11 07:11

rmoestl


People also ask

Why is java in system32?

The java.exe in \windows\system32\ is provided so that not everyone needs to set a PATH variable just to run a java program (from the command line) and selects a version (the last one installed it seems) of the installed java virtual machines (JVM) if there are more than one (publicly) installed.

How do you stop java installation?

Click Start, point to Settings, and then click the Control Panel. In the Control Panel, double-click the Add/Remove Programs. On the Install/Uninstall tab, click the Java version you want to uninstall, and then click Add/Remove. When you are prompted to continue with the Uninstall, click Yes.


1 Answers

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.

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.

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 )

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

Cheers! Fernando

like image 135
Fernando Cabal Avatar answered Sep 28 '22 06:09

Fernando Cabal