csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Unable to detect 64 bit java jre on Windows

I've built a application(default build, not a "Java Product") that requires java 1.6 or better, not caring if 32 bit or 64bit sun jvm is used. I have a test pc that only has Vista, 64 bit java installed. Unfortunately on installation, the installer doesn't seem to detect the 64 bit version, simply complaining that either the application requires a 32 bit version, or it requires the specified(1.5) version or higher. According to the registry key, that pc is showing the correctly "currentVersion 1.6","Java6FamilyVersion 1.6.0_16". Not seeing any related options under the prerequisite, and searching around, seems 64bit windows tend to hide its registry keys to 32 bit applications, or separate them?. So I was wondering if there was a option I am missing, or a workaround for detecting the 64bit java jre. TIA.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Unable to detect 64 bit java jre on Windows

Hello,

Yes, the 64bit hive is hidden to 32-bit installers. You can try marking your installer a "64-bit package" from the "Install Parameters" page. A 32bit package will search for a 32bit java 1.6. Likewise a 64bit package will look for 64bit java.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Re: Unable to detect 64 bit java jre on Windows

So finally able to get hands on machine. Is windows 7 64bit OS on Intel core 2 duo, running jre 1.6.0_16 b01, hotspot 64bit server jvm. HKLM reg keys are there, and have the appropriate Javasoft java runtime keys there(HKLM\SOFTWARE\JavaSoft\Java Runtime Environment), and using under prerequisites, reg subkey enumeration. The exception I get is :Java Runtime 1.5 or greater is required to unpack jar files. I am using LZMA compression, along with pack200 option enabled. I have built the installer for 64bit package for intel. Any suggestions would be appreciated.
csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Re: Unable to detect 64 bit java jre on Windows

Changing the compression to internal cab files now results in a unsupported processor type. Didnt click to me that the processor is a 32bit but OS is 64bit? What would be the best way to build this? And ofcourse would still need to figure why the lzma/pack200 does not work, as size goes from 7mB to 27mB
csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Re: Unable to detect 64 bit java jre on Windows

So Changing back to 32bit installer, with extras in cab files within installer, installer works, but launching still is unable to find java 1.5 or higher. So launch fails.
csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Re: Unable to detect 64 bit java jre on Windows

Currently seeing if the "Server JVM" has something to do with it.
csjojo
Posts: 10
Joined: Tue Sep 01, 2009 6:32 am

Re: Unable to detect 64 bit java jre on Windows

Java windows x64 JRE downloads list as server jvm using the java -version. I should mention we are trying to get our app to run on windows 64bit OS that only have a 64bit jvm installed.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Unable to detect 64 bit java jre on Windows

Hello,

Thank you for bringing this to our attention. This seems to be an issue when installing packages using pack200 compression on a computer which does not have a 32bit jre (or 32bit jre bundle) installed on the system. We have added a fix on our TODO list and will be available in the next version of Advanced Installer which is scheduled this month.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”