wood burning stoves 2.0*
The moose likes Java in General and the fly likes Java Installation/Uninstallation Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Installation/Uninstallation Help" Watch "Java Installation/Uninstallation Help" New topic
Author

Java Installation/Uninstallation Help

Kevin Lillyb
Greenhorn

Joined: Aug 22, 2011
Posts: 3
Hello to all,

I'm having an odd problem with my Java installations. Im running Windows 7 and have java installations in the \Program Files directory for 64bit and Java installations in the \Program Files (x86) for 32bit.

When I type java -version in the command line it stated that my current java version was one of the 64bit \Program Files installations. For a project, I needed to use xuggler which required running a 32bit Java version. So I decided that I would just uninstall the 64 bit versions. For some reason the installation became corrupt and I had to remove the files manually from the registry and \Program Files. The 64bit installation does not show up in my add/remove programs anymore.

So... I changed all the path and classpath settings to match that of the 32bit installation. Then I typed 'java -version' in the command line I get "Error: Could not open 'C:\Program Files\Java\jre6\lib\amd64\jvm.cfg'". It seems windows is thinking Im using the 64bit install but I dont even have those files in my \Program Files directory. I tried to download a new 64 bit java that way I could just uninstall it and hopefully make the problam go away but It wont let me install a new 64 bit java cause it cant find my jre.msi. Arg...

Does anybody know how to fix the java -version problem or even the "can't find jre.msi uninstall/install" issue. I can provide screen shots if needed.

Thanks in advance for the help.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Hi Kevin,

I am not sure of this but as a trial & error method can you edit your EnvironmentalVariables -> Path variable to have the 32 bit installation bin folder at the first. Something like below. The 32 bit installation bin folder should precede any other path variables & try again java -version with new cmd prompt
C:\Program Files\Java\jdk1.6.0_25\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32


And welcome to the Ranch
Kevin Lillyb
Greenhorn

Joined: Aug 22, 2011
Posts: 3
That seems to have done the trick. Thanks for the help!
 
GeeCON Prague 2014
 
subject: Java Installation/Uninstallation Help