• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java Installation/Uninstallation Help

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That seems to have done the trick. Thanks for the help!
 
reply
    Bookmark Topic Watch Topic
  • New Topic