#!/bin/bash
# set java after emerge -auDN @world

# doc:
# https://wiki.gentoo.org/wiki/Java

# list all available:
java-config --list-available-vms

# set oracle jdk
java-config --set-system-vm 2

# validate setup
java-config --list-available-vms

# 
echo '*=oracle-jdk' >>/etc/java-config-2/build/jdk.conf

#
java-config --list-available-packages
