Thursday, May 28, 2009

Workaround to Install Java

I ran into a situation recently where Java needed to be installed on a pc but it would not install properly from the web or by running locally. Either msiexec.exe would crash or I would get a message similar to, "The Java cannot be downloaded to your machine. You are living in an embargoed country." After trying many things the solution that worked for me is below.

To install java do this:
- Start->Run->cmd
- go to your java directory (where the install .exe is located)
- type this command: {name of java executable}.exe /s /v"/qn ADDLOCAL=ALL IEXPLORER=1 INSTALLDIR=c:\java\jre"

Hope it helps you like it helped me!

No comments:

Post a Comment