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
24 July, 2007 at 10:40 pm
hmm.. ./eclipse -vm $(java-config –java) and that’s all
31 July, 2007 at 9:20 am
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.
10 October, 2007 at 7:45 pm
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
21 November, 2007 at 3:34 pm
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?
23 November, 2007 at 8:59 am
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.