Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313312

Summary: Main download page doesn't auto-detect 32 vs 64-bit Mac
Product: Community Reporter: Milos Kleint <mkleint>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: darin.eclipse, david_williams, jeffmcaffer, kim.moir, nathan, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Milos Kleint CLA 2010-05-18 05:53:30 EDT
Build Identifier: 20100506-2000

it seems the eclipse download page by default offers 32 bit version of eclipse on MacOSX snow leopard. Everything seems to work fine, until one selects a Target Platform. The platform resolves, but when running, the application fails to start saying 
"Cannot load 32-bit SWT libraries on 64-bit JVM"

Happened to me with galileo and helios alike. The solution to the problem seems to be to explicitly download the 64 bit version of eclipse. The download page shall have recognized Snow leopard on it's own and offer the 64 bit variant.

Using chrome browser.

Reproducible: Always

Steps to Reproduce:
1. download eclipse for mac, use the default 32 bit download as offered by eclipse.
2. create a rpc app, with a custom target platform
3. select the target platform and try to run the application
Comment 1 Jeff McAffer CLA 2010-05-18 09:09:56 EDT
You Mac configuration is likely defaulting to a JRE that runs 64 bit mode by default. The eclipse launcher handles this with you run your 32 bit IDE but when you launch an app from inside Eclipse the 64 bit JRE will run.  As youve seen, with a 32 bit target the JRE gets upset.  Try adding -d32 to the VM Args of the launch configuration or product you are running.  That tells the 64 bit JRE to run in 32 bit mode.
Comment 2 Kim Moir CLA 2010-06-03 17:06:25 EDT
Which download page are you offered the 32 bit version by default?

I see that you can select the version you want to download on this page.

http://www.eclipse.org/downloads/
Comment 3 Milos Kleint CLA 2010-06-04 03:23:49 EDT
yes, I can pick the correct one on that page. However when I click just the distribution name, I get the wrong one.
Comment 4 Jeff McAffer CLA 2010-06-04 08:04:52 EDT
I can reproduce this.  on my 64bit snow leopard machine, simply clicking on Eclipse Classic on the download page gets 32 bit Cocoa.
Comment 5 John Arthorne CLA 2010-06-04 10:26:53 EDT
I suspect the main download page uses a PHP script to auto-detect your OS and it is not handling 32 vs. 64-bit Mac.
Comment 6 Nathan Gervais CLA 2010-06-04 10:40:35 EDT
This is an issue that i'm also trying to address for Windows 64.  Currently we're doing our detection based on your user agent string from your browser.  

Could you folks post what your user agent strings are?  Here's a handy url -> http://whatsmyuseragent.com/

This would help greatly in getting this bug fixed as i don't have a Mac to test on.
Comment 7 Milos Kleint CLA 2010-06-04 11:11:20 EDT
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4

HTTP_CONNECTION:keep-alive
HTTP_ACCEPT:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.3
HTTP_ACCEPT_ENCODING:gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.8
HTTP_HOST:whatsmyuseragent.com
HTTP_USER_AGENT:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4
Comment 8 Denis Roy CLA 2010-06-04 11:16:42 EDT
> Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4
> (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4

Is it just me, or does nothing in that string clearly identify a 32-bit or 64-bit browser?
Comment 9 Milos Kleint CLA 2010-06-04 11:18:19 EDT
is there a 32 bit version of 10_6_3? I think snow leopard is only 64 bit. (while leopard was only 32 bit) but i'm not entirely sure here..
Comment 10 Nathan Gervais CLA 2010-06-04 11:22:00 EDT
(In reply to comment #8)
> > Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4
> > (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4
> 
> Is it just me, or does nothing in that string clearly identify a 32-bit or
> 64-bit browser?

This is what i'm having an issue with for Windows 64-bit.  The agent string is based on your browser.  If you're using a 32-bit browser (Firefox only ships 32-bit versions) it will be reported as such.   

I'm thinking we may have to use Javascript to determine this more reliably.
Comment 11 Denis Roy CLA 2012-08-29 11:37:54 EDT
I may be wrong, but I think this bug is now invalid.  When it was opened, there was a main download link which used the user-agent string to determine OS/platform.

Now we use the user-agent string to determine OS only, and offer up 32-bit and 64-bit links (ie, we no longer attempt to auto-detect 32 or 64 bit platforms, and we shouldn't either, in the case of a user using a 32-bit browser on a 64-bit platform, or a 32-bit JRE on a 64-bit platform, etc).

I'll close this as WONTFIX.  Please reopen if my assessment is incorrect.