Eclipse, Java and Snow Leopard
I'm getting about 50 hits a day from people searching for the simple answer "Eclipse Cocoa vs. Carbon" and ending up in my previous article. In the past, I recommended installing Eclipse Cocoa 32-bit. However, now that Snow Leopard (SL) is out, the situation changed and an update is in order.
There are some major news regarding Java in SL. First, it ships with Java 6 only. This includes 32-bit and 64-bit versions. The 32-bit is something which was unknown until the release of SL and it means Java 6 will be available on older intel machines which are not 64-bit capable (Intel Core Duo). Second, the 64-bit version is the default for users running 64-bit capable machines (Intel Core 2 Duo).
This means that unsuspecting users downloading Eclipse from eclipse.org will not be able to run it because the default Cocoa packages are 32-bit. There are a number of options for SL users:
- Change the default JVM to 32-bit using the Java Preferences application (under /Applications/Utilities).
- Change the JVM for the Eclipse instance specifically. That's more of a hassle.
- Work with 64-bit Eclipse. This installation may require more work, as there are no ready made Eclipse Packages for 64-bit Cocoa at the time of this writing.
If this is the case, you should be running Eclipse in 64-bit Cocoa in Snow Leopard. My recommendation regarding Leopard is still the same.
There are no ready-made packages (e.g. JEE, PHP, etc.) for this architecture (vote for this bug if you want the situation to change). However, you can download the basic Eclipse Classic directly from the Eclipse.org downloads page
(64-bit available only for the Eclipse Classic) and install the plugins as one package in a very simple process. See this post
for a complete screencast or this post
if you prefer simple screenshots walkthrough.
Finally, if you plan to do some Java development, you may find out that your JREs are not working properly. In that case, you can just delete your current JREs and search for new ones. This can be done under Eclipse -> Preferences -> Java -> Installed JREs. Also make sure that you have a working JRE selected for your Java projects, in the Project settings (under Build Path -> Libraries).
He is a entrepreneur and a software architect from Tel Aviv, Israel. He is also a technology freak with about 20 years experience working with computers. He is currently working on his first private initiative in the area of software development tools. His vision is to maximize the abilities of software developers by providing pragmatic tools that enable them to get fast results. Zviki is a DZone MVB and is not an employee of DZone and has posted 25 posts at DZone. You can read more from them at their website.
- Login or register to post comments
- 6196 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)










Comments
thvv replied on Sun, 2009/09/06 - 9:39am
You state "This means that unsuspecting users downloading Eclipse from eclipse.org will not be able to run it because the default Cocoa packages are 32-bit." This does not seem to be true.
I downloaded the 32-bit Cocoa Eclipse package from the website since no 64-bit version was available.
I unzipped and installed Eclipse on a clean Snow Leopard machine. I copied over my workspace from Leopard. Eclipse started right up, opened my workspace, and appeared to work. It showed some compilation errors of Java programs because files were missing, and it appears that either Java or Eclipse has changed rules about package naming, but nothing serious.
So that's the good news. Then I went into "Help :: nstall new software" and tried to install subclipse 1.6.x. It did a lot of installing but at the end, the "SVN exploring" perspective was in angle brackes and all gray, and there was no SVN preference pane. So perhaps that is the result of 32/64 problems, or an incomplete install, or .. who knows, ghosts.
Christophe replied on Wed, 2009/09/09 - 2:27pm