Harmony JDK can be installed using Gentoo native package manager, portage.

At this moment, binary ebuild for the M3 stable snapshot is available:

Instruction to try out

0) configure portage overlay

$ echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf

1) put the ebuild files in place

$ mkdir -p /usr/local/portage/dev-java/harmony-jdk-bin/files
$ mv harmony-jdk-bin-0.02.551077.ebuild /usr/local/portage/dev-java/harmony-jdk-bin
$ mv harmony-jdk-bin.env /usr/local/portage/dev-java/harmony-jdk-bin/files

2) regenerate the ebuild manifest and digest files

$ ebuild /usr/local/portage/dev-java/harmony-jdk-bin/harmony-jdk-bin-0.02.551077.ebuild digest

3) configure keywords to accept unstable package

$ echo 'dev-java/harmony-jdk-bin ~x86' >> /etc/portage/package.keywords

4) install the package

$ emerge harmony-jdk-bin

5) make sure that the harmony-jdk-bin is in the list of installed VMs, and choose it as default

$ java-config -L
$ java-config --set-user-vm=harmony-jdk-bin
$ java -version
  • No labels