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?
FOLLOW US
Get the latest news in Application Packaging