This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.
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