Eclipse in 64 bits

I’ve been given this pretty cool Linux desktop system to play with. It wasn’t until I started to download Eclipse 3.1 that I realized it was a 64 bit installation (the Eclipse download page detects the operating system). Cool, I thought. The system even came with a Java Runtime Environment (JRE) installed, so I was good to go. Or so I thought.

Eclipse was a breeze to install and run. I was up and running in minutes. I was able to build a couple of new projects and really get things going. Then, I started to play with Eclipse Modeling Framework (EMF) and started getting errors. Curious errors related to regular expressions. Problems deep in J2SE code. I also tried to use the Java introspector and it also failed. At this point, the Eclipse Evangelist in me feels a need to point out that the problem had nothing to do with Eclipse itself.

I assumed that there must be something going on with the JRE so I checked the version which showed me that I was having my first experience with GIJ 1.4.2, the GNU Java bytecode interpreter. Right or wrong, I decided to just give up on GIJ and download a JRE that I am more comfortable with (and one that shows up on the supported Java runtimes list). Perhaps I’ll pursue the use of GIJ later as it seems that other folks have had some success with it.

So I went and downloaded a JRE from the Sun site. I installed the JRE directly into the Eclipse installation directory in a subdirectory named “jre” and started up Eclipse. Or rather, I tried and it failed with a java.lang.UnsatisfiedLinkError. After a certain amount of cursing (a full transcript of which would be inappropriate in this forum), I determined that trying to run the 64-bit version of Eclipse 3.1 with a 32-bit JVM was the problem (bug 85699 is asking that a better message be presented; I’m going to recommend something that includes the words “big dummy”) . In short, PEBKAC.

So… the net of this is that 64-bit Eclipse requires a 64-bit JRE.

Of course, that wasn’t the end of my troubles. I downloaded a 64-bit JRE and tried to install it. In alignment with the theme for today, it failed. The installer just wouldn’t work. In desperation, I called on Matt, our Linux Systems Administrator, to help me out, assuming that I had reached some limit on my Linux skills. Within seconds, Matt determined that I was trying to install the ia64 (Intel) version of the JDK on an AMD64 system. In short, Matt pointed out that I am an idiot. I downloaded the AMD64 version of JDK 5.0 and it installed as advertised. In fact, everything appears to be working as advertised.

It turns out that you need to know what kind of hardware you’re trying to install on.

This entry was posted in Uncategorized. Bookmark the permalink.

6 Responses to Eclipse in 64 bits

  1. Sonya says:

    Thanks, you really have some interesting stuff on your site. keep at it.tramadol

  2. RefuX says:

    The lesson: Linux is cheap if your time is free.I run a Linux server at home and curse it on a daily basis🙂

  3. Wayne says:

    Well… I don’t know about that. I actually quite like Linux and it’s been working really well for me (and I’m a gui-spoiled Mac-weenie from way back).The problem was that I had downloaded the wrong JRE. It’d have been nice if Linux could have told me straight up that I was being stupid, but I guess you can’t get everything.I wonder what 64-bit Windows would have done?

  4. Mark Wielaard says:

    Thank you for (unknowingly) testing out gcj/gij. And as one of the gcj/gij and GNU Classpath core library hackers I apologise for the problems you encountered with it. If at all possible could you please tell me the GNU/Linux distribution you were using, the precise version of gij and the exact error message you got (and/or steps to repeat the issue)?Although your experience wasn’t a complete success you cannot believe how encouraging reading your report was. I was up and running in minutes. I was able to build a couple of new projects and really get things going. So partly we completely succeeded in providing a Free Software environment that could host eclipse. We have been working for a couple of years on a complete Free Software replacement for the proprietary java platform that users are as free to hack on, modify, improve and share with others as they can with Eclipse. Since you had some trouble we are not 100% there yet. But we are pretty close now. Hopefully in the near future it will show up on the supported runtimes list. Then the complete platfrom, from linux kernel, to the Eclipse platform will all be part of a fully integrated Free Software stack.

  5. Ron Charron says:

    I’d be very interested in any other results you get from running with the 64 bit vm. My deployment platform is linux (RH enterprise).Thanks for posting.

  6. CNN Guy says:

    If you happen to use a hotspot-based 64bit JRE you have probably noticed lots of random JVM crashes. They will go away if you create a ~/.hotspot_compiler file with the following contents:exclude org/eclipse/jdt/internal/compiler/parser/Scanner getNextTokenexclude org/eclipse/jdt/internal/compiler/parser/Scanner jumpOverMethodBodyexclude org/eclipse/jdt/core/compiler/CharOperation concatWithexclude org/eclipse/jdt/internal/core/util/CommentRecorderScanner recordComment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s