Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15102
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How to use 32 bits JRE on Windows 7 64 bits computer? |
| Date | 2012-06-08 04:04 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <9145e02c-5a5e-45b9-8f2e-008d68ee31d5@googlegroups.com> (permalink) |
| References | <018d458b-c915-4b2d-8397-65b297e649a2@googlegroups.com> <a3ceurFv4lU1@mid.individual.net> <d1af7fc8-86dc-46fc-a73b-e03a0f24c543@googlegroups.com> |
On Friday, June 8, 2012 2:40:39 AM UTC+2, zyng wrote: > Thank you for your reply. The issue has been solved. > > Just another question, on Microsoft Windows computer, I have installed JDK and have set the environment variable JAVA_HOME: > > (in Cygwin) > $ echo $JAVA_HOME > C:\Program Files\Java\jdk1.6.0_32 > > However, it seems "java" command is not from the JDK I installed, it is from c/Windows/system32/java. Why is that? Because the shell does not use JAVA_HOME but PATH for lookup of executables. > $ java -version > java version "1.6.0_31" > Java(TM) SE Runtime Environment (build 1.6.0_31-b05) > Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing) > > $ which java > /cygdrive/c/Windows/system32/java > > So, on my computer, I have two "java" commands. Is this one(c/Windows/system32/java) a gift from Microsoft? Might be. Might also be that one Java installation put their executable there. Bottom line, you better make sure the proper executables from an installation directory are used. I typically have scripts which will honor JAVA_HOME and pick the proper executables so I can easily switch Java versions. Kind regards robert
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to use 32 bits JRE on Windows 7 64 bits computer? zyng <xsli2@yahoo.com> - 2012-06-07 11:46 -0700
Re: How to use 32 bits JRE on Windows 7 64 bits computer? Robert Klemme <shortcutter@googlemail.com> - 2012-06-07 21:49 +0200
Re: How to use 32 bits JRE on Windows 7 64 bits computer? zyng <xsli2@yahoo.com> - 2012-06-07 17:40 -0700
Re: How to use 32 bits JRE on Windows 7 64 bits computer? Robert Klemme <shortcutter@googlemail.com> - 2012-06-08 04:04 -0700
Re: How to use 32 bits JRE on Windows 7 64 bits computer? Roedy Green <see_website@mindprod.com.invalid> - 2012-06-07 18:31 -0700
Re: How to use 32 bits JRE on Windows 7 64 bits computer? Roedy Green <see_website@mindprod.com.invalid> - 2012-06-07 18:31 -0700
csiph-web