Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: How to use 32 bits JRE on Windows 7 64 bits computer? Date: Thu, 07 Jun 2012 18:31:26 -0700 Organization: Canadian Mind Products Lines: 32 Message-ID: References: <018d458b-c915-4b2d-8397-65b297e649a2@googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:15098 On Thu, 7 Jun 2012 11:46:11 -0700 (PDT), zyng wrote, quoted or indirectly quoted someone who said : >Both 32 bits and 64 bits JRE are installed on Windows 7 64 bits computer. Normally, 64 bits JRE is used. > >Right now, for some reason, we hope that 32 bits JRE is used when running a commercial Java program. > Is this only the matter of setting the environment variable JAVA_HOME? We have tried that and it didn't show the effect we expected. Astoundingly, your browser selects the appropriate 32 or 64 bit JVM automagically. You can verify this by running http://mindprod.com/applet/wassup.html Which is used for an app depends which is first on the path. You can also put it on the pseudo path in the registry for Windows. http://mindprod.com/jgloss/registry.html#AUXPATH It is easiest to just specify fully if you flip often e.g. E:\Program Files\Java\jdk1.7.0_04\bin\java.exe or put it into a central global SET variable. es.g. set JAVA=E:\Program Files\Java\jdk1.7.0_04\bin\java.exe %java% -ea someparm -- Roedy Green Canadian Mind Products http://mindprod.com Controlling complexity is the essence of computer programming. ~ Brian W. Kernighan 1942-01-01 .