Aptana in Ubuntu 64bit

Installing Aptana in Ubuntu 64bit is no fun, every other distribution has its standalone package, but not on Ubuntu 64bit : (

After installed Aptana onto my Eclipse as a plugins, launching Eclipse (now with Aptana) splat me on the face with “Aptana requires Sun JRE 1.5 or greater to work properly.

But I’ve already had JRE 1.6! Some forumers says I need to update my JAVA_HOME and the symbolic link that points to the “real” JRE 1.6:

ubuntu:~$ sudo update-alternatives --config java
ubuntu:~$ echo "export JAVA_HOME=/usr/lib/jvm/java-6-sun/jre" >> ~/.bashrc

Now there is a problem, the error is gone, only if I launch Eclipse from terminal, if I launched it from the “Main Menu”, the error about JRE comes back.

Until much later I found out that Eclipse support a flag -vm to specifically allow one to point to the VM they wish to use, I’ve added the line “/usr/bin/eclipse -vm /usr/lib/jvm/java-6-sun/jre/bin/java” as the command to execute.

So, I dont get it, why is $JAVA_HOME not set if eclipse is launch from the “Main Menu”?

Comments

  1. Marc Fearby says:

    Thanks for the tip about the -vm switch. That fixed my problem (all the other stuff about update-alternatives and using the ia32 version didn’t help me).

    I didn’t bother with the $JAVA_HOME fix yet. Once your -vm worked, I became happy and moved on, but did you define that in your .bashrc or .bash_profile file?

  2. merc says:

    Em… I’ve put it in my ~/.bashrc, but like you said, it works after that… so i dint really investigate any more… : )

Submit a Comment