berniedolan
JVM Error Installing 64-bit ColdFusion On Mac
February 16, 2009
The "Java for Mac OS X 10.5 Update 2" released Sep 24, 2008 appears to have caused an issue with the 64-bit installer for ColdFusion. I've verified the issue also exists in Update 3 which was just released Feb 12.
The following error occurs just after accepting the license agreement in the installer...
Error: Unsupported Platform
This installer will run only on 64 bit mac-intel. PPC and 32 bit mac-intel
are not supported. If this is a 64 bit mac-intel, make sure 64 bit JDK is
the default JVM.
Close this installer and restart installation using a 32 bit installer.
This forum post describes a way to get around the issue, but it involves deleting and copying files en masse, which is potentially unsafe (IMO), so I wasn't thrilled with the approach. The below commands will also resolve the issue, and only involves 1 file...
cd /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/
sudo mv java java.BACKUP
sudo cp ../Home/bin/java .
Rerun the installer (which should work now) then when complete, run the following command to restore the symbolic link...
sudo mv java.BACKUP java
You can also just opt to use ColdFusion's 32-bit installer as suggested in the error message, but if you also plan to use Apache you'll need to switch it to run in 32-bit mode as described here in this technote.
Comments (13) | Related Categories: ColdFusion
Feb 16, 2009 at 3:21 PM
I would think you could just run Applications/Utilities/Java/Java Preferences and set your default java version to 64-bit. I haven't tried it for this, but it has worked for me in the past.
Feb 16, 2009 at 4:39 PM
Thanks Jared -- I actually did try setting the preferences as you describe (by making the 64-bit version appear first in the list), but interestingly it didn't work. I even tried rebooting the machine in case it was something that takes effect on startup. I debated mentioning this in the post, so I'm glad you brought it up :-)
Feb 20, 2009 at 4:00 AM
Thank you so much for posting this. It really saved me few hours of frustration
Feb 20, 2009 at 8:44 AM
Great post. I was pulling my hair out last night trying to get this installed. Thanks for the info!
Mar 16, 2009 at 9:29 PM
Thank man, <br /><br />Saved me time for the second time with this post. :-)
May 25, 2009 at 1:48 AM
So the rename works for me, but when I try to execute the 2nd command I get the error: ../Home/bin/java: No such file or directory<br /><br />But the file is there, I can see it and I can even mv it, but I cannot copy it.<br /><br />Any idea what might cause this or how to get around it? Brand new to Unix / command line OS X.
Jun 22, 2009 at 8:13 AM
That worked! Thank you! But I wonder why... I had previously relinked CurrentJDK to 1.6.0. Running ./java -version and ./java.BACKUP -version both report the same version info. ColdFusion clearly saw a difference.
Jul 4, 2009 at 9:03 PM
I can't get this to work:(<br />What is this so hard to get this working on leopard, I have been trying for to days, an anybody help?<br /><br />Johnny
Jul 26, 2009 at 12:30 AM
Thanks, worked for me. This probably would have taken me hours to figure out as I'm new to the Mac.
Sep 17, 2009 at 10:29 AM
Hi Bernie,<br />I just upgraded my Mac Pro to Leopard (I thought it was about time) and ran into this problem trying to install 64-bit CF8. Thanks for posting this solution!
Oct 29, 2009 at 1:44 PM
Worked great on my MBP running Snow Leopard! Thanks!
Dec 2, 2009 at 1:17 AM
Worked perfectly! Thank you!
Feb 3, 2010 at 3:19 PM
Thanks, this was INCREDIBLY helpful!