在 Mac 上使用哪个 Eclipse 版本?(碳或可可)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1956652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Which eclipse version to use on a Mac? (Carbon or Cocoa)
提问by Sam
When i go to the eclipse website (http://www.eclipse.org/downloads/) there are 3 different versions of eclipse for Mac:
当我访问 eclipse 网站 ( http://www.eclipse.org/downloads/) 时,Mac 有 3 个不同版本的 eclipse:
- Carbon 32bit
- Cocoa 32bit
- Cocoa 64bit
- 碳 32 位
- 可可32位
- 可可64位
I'm confused about why there are three version and which one i should be using. (I'm running OSX 10.5 on a MBP)
我对为什么有三个版本以及我应该使用哪个版本感到困惑。(我在 MBP 上运行 OSX 10.5)
采纳答案by Scott K.
I say go with the 32-bit Cocoa version unless you want to use Java 6. The 32-bit version will use less memory, and because the 32-bit 1.5 JVM is the client Java VM it's better tuned for UI apps.
我建议使用 32 位 Cocoa 版本,除非您想使用 Java 6。32 位版本将使用更少的内存,并且因为 32 位 1.5 JVM 是客户端 Java VM,所以它更适合 UI 应用程序。
If you want to use Java 6 on 10.5, you must use the 64-bit Cocoa version.
如果要在 10.5 上使用 Java 6,则必须使用 64 位 Cocoa 版本。
You would think there would be a universal 32/64-bit version, but there isn't. The reason there are multiple versions is due to the SWT's (and Eclipse's for that matter) philosophy of one architecture and one windowing system per application. p2/Equinox can't cope with multiple architectures in the same application.
你会认为会有一个通用的 32/64 位版本,但没有。有多个版本的原因是 SWT(以及 Eclipse 的)哲学,即每个应用程序一个体系结构和一个窗口系统。p2/Equinox 无法在同一个应用中处理多个架构。
回答by Jeffrey Aylesworth
Use Cocoa 64bit, you most likely have a 64 bit processor (unless you know you don't).
使用 Cocoa 64 位,您很可能拥有 64 位处理器(除非您知道自己没有)。
Carbon is just the old graphical API, it was replaced by Cocoa.
Carbon 只是旧的图形 API,它被 Cocoa 取代。
回答by FloppyDisk
Depends on what you're using it for. I've been using 32-bit Cocoa on a MBP running 10.5 for most of my development for the past 3 months and haven't had any problems. I wouldn't use Carbon as it is a now deprecated API.
取决于你用它做什么。在过去 3 个月的大部分开发过程中,我一直在运行 10.5 的 MBP 上使用 32 位 Cocoa,并且没有遇到任何问题。我不会使用 Carbon,因为它是一个现已弃用的 API。