So I shall skip all the history behind this question and do my best to diagnose the problem and as a group, maybe we all can come up with a solution. I am a bit surpised I am posting this. I would have thought I would have figured this out on my own. I am putting this question in beginning
java because it is an install issue I believe. So trouble started when I tried to set up Eclipse Juno 4.2. I get the 'Could not open JAVA_HOME\lib\amd64\jvm.cfg' error. I search around and what is happening is I hava 64 bit operating system (Windows 7), I have the 64 bit eclipse application, and now I need the 64 bit JRE. I need the full JDK which comes with a JRE so I figure, this is a great opportunity to upgrade to Java 7, the 64 bit version. I now have gone out and downloaded it and installed it. I changed the JAVA_HOME variable to the new path. The PATH variable builds off JAVA_HOME. I also found out, when checking java from the command line on windows 7 on 64 bit, you need the 64 bit command window. Typing 'cmd' into the start menu was not working. So here is what my DOS window looks like right now. I copied and pasted into the form.
C:\Java\java7_64b\jre\bin>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
C:\Java\java7_64b\jre\bin>cd ..
C:\Java\java7_64b\jre>java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode)
C:\Java\java7_64b\jre>set path
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;c:\Java\java7_64b\jre\bin;C:\maven2\bin\;c:\Gradle\bin;
c:\ant\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
C:\Java\java7_64b\jre>set java_home
JAVA_HOME=c:\Java\java7_64b
C:\Java\java7_64b\jre>
So this is fascinating. Clearly JAVA_HOME has the path to 64 bit Java 7 and when in the bin directory it indicates it is there however, when I pull up the DOS window I am defaulting to a different version of java I still have on the machine. To get a DOS window that even does anything, I have to launch from the 64 bit windows directory which is different from all the System32 directories. So I am wondering is it a Windows 7 secuirty/user problem? Am I still pointing to a 32 bit environment? Do I have something misspelled somewhere? Do I have to formally go and uninstall the previous version of java? I am thinking if I can get this machine, default pointing to Java 7 64bit, then I will be able to launch Eclipse 64 bit Juno 4.2 without the error message coming up.Thanks in advance for actually reading this post.