What is Java? What purpose does it serve?
Editing your make.conf
To tell portage that we would like it to pull java in the next time it is updated, we need to do the following:
# nano /etc/portage/make.conf
Running that command should present you with a file containing something similar to this:
In the file, if it does not exist, create a line like the following to pull java in:
Press Ctrl+X , then y, then enter to write the changes to the file.