Installing eclipse 3.3 on Gentoo

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.

About andy dingfelder

Andy has over 20 years of technology leadership experience in Software Testing / Development / Project Management and Team Leadership in multiple industry sectors, including: Telco, Healthcare, Technology and government. He is currently working as a Senior Test Consultant for Planit Software Testing. Master's Degree in Public Information Information Systems, and over 10 years of board governance experience for multiple organisations. Full bio is available at: http://www.linkedin.com/in/dingfelder Follow him on Twitter at http://twitter.com/dingfelder Andy Dingfelder lives in the Wellington region, New Zealand with his wife and two daughters.
This entry was posted in Eclipse, gentoo, Java, linux. Bookmark the permalink.