14 July, 2007...1:52 pm

Installing eclipse 3.3 on Gentoo

Jump to Comments

Today was the day to get eclipse going on Gentoo. I downloaded the latest version (3.3) and dropped it into /opt/eclipse.

I fired it up and got:

# ./eclipse
* run-java-tool is not available for sun-jdk-1.6 on i686
* IMPORTANT: some Java tools are not available on some VMs on some architectures

so, clearly it did not like my java.

I know my java is good:

# java-config -L
The following VMs are available for generation-2:
1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2) Sun JDK 1.4.2.13 [sun-jdk-1.4]
3) Sun JDK 1.5.0.10 [sun-jdk-1.5]
*) Sun JDK 1.6.0 [sun-jdk-1.6]

Looking around, I found the following:

Java on Gentoo uses /usr/bin/run-java-tool instead of /usr/bin/java (which links to run-java-tool)

the trick is to edit /usr/bin/run-java-tool

after:

tool=$(basename $0)

add

[[ $tool = "run-java-tool" ]] && tool=”java”

then eclipse started perfectly.

5 Comments

  • hmm.. ./eclipse -vm $(java-config –java) and that’s all :)

  • I hear what you are saying, and I agree that if you know to add that, it does work.

    The intent though was to make eclipse start up correctly *without* having to edit the startup params. If someone clicks the eclipse exe from within kde without the run-java-tool change, it does not start unless they knew that startup switch.

  • I’m wondering that gentoo didn’t fix this yet… i just had the same problem and i’m also thinking that it shouldn’t be necessary to use the -vm commandline option to correctly set the jvm path, especially if there’s such a thing like java-config for it :)

  • What permissions did you set on the /opt/eclipse-3.3 folder? (Or whatever you named it?) Also; do you get it showing up in your GNOME (Or KDE) menus? Or do you need to create an icon on the desktop to launch it?

  • I set it up with 770 so everyone in the eclipse group could have write access.

    It did not set up a menu automatically, as the install is just an archive really, so I had to create a start button for it.


Leave a Reply

You must be logged in to post a comment.

You must be logged in to post a comment.