32 vs 64 bit Java - Advanced Installer Community
klatu
Posts: 6
Joined: Wed Jan 11, 2012 11:29 pm

32 vs 64 bit Java

I have an application that runs on either 64bit or 32bit java. I just need Java installed. The problem is that a lot of our customers only have 32bit Java installed, even on 64bit machines. Our code deals with the level of java and handles the situation correctly.

The problem I have is that the Native Java Launcher seems to not like it. It says it can't find Java even when Java is installed, it is just the wrong one.

I tried to force a 32 installer. This worked fine on 32 bit machines and 64 bit machines with 32bit versions of Java. But it failed if the user has a 64 bit machine and 64bit java.

So now I install both 32bit and 64bit native launchers on 64bit machines and only 32bit on 32bit machines. This partially works. At least one of the shortcuts to the 32 or 64 bit native launcher will work. Its not 100% perfect, because it is possible that they click on 32bit when they only have 64 bit java or 64bit when they only have 32bit java.

Is there a clean way to detect the 32/64 bit versions of java and only install the proper native launcher? Any solution that is better than what I have?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: 32 vs 64 bit Java

Hello,

To achieve what you want you should only set the "Platform" field, from "Java Products page -> select your product -> Settings tab -> Application section", to "Any CPU (32/64)" option.

Let us know if this helped, otherwise please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”