Walt and Kenneth, Your help with this problem is appreciated, though the problem still persists. What versions of java do you guys have installed? What does "eselect java-vm list" show on your machines? I'm on AMD64, what architectures are you running? Looking around, /usr/bin/java is a symlink to run-java-tool which is working. For example "java -version" displays an appropriate value. Output from multiple tests of eselect, java-config, and emerge is attached. To summarize the attachment: /usr/lib/jvm reports icedtea6 and sun-jdk-1.6.0.20 "eselect java-vm list" shows sun-jdk as active "eix -e --nocolor ant-core" shows ant-core installed "eselect java-vm set system 1" successfully changes to icedtea6 "emerge -qv ant-junit" fails because ant-junit isn't found "eselect java-vm set system 2" successfully changes to sun-jdk-1.6.0.20 "emerge -qv ant-junit" fails because ant-junit isn't found notice that both icedtea6 and sun-jdk-1.6.0.20 have been tried and "emerge ant-junit" fails with both On a related note, "java-config -S" only works for user 'root'. It doesn't work for an individual user, e.g. 'relson' "eselect java-vm set" allows system-wide setting of the vm and also has a per-user option. Also, eselect includes an unnecessary (but harmless) / in the sym-link, i.e. eselect: current-system-vm -> /usr/lib/jvm//icedtea6 java-config: current-system-vm -> /usr/lib/jvm/icedtea6 On Sat, 22 May 2010 20:41:19 -0700 walt wrote: > On 05/22/2010 01:10 PM, David Relson wrote: > > > > * Unable to determine VM for building from dependencies: > > * Failed to determine VM for building. > > Well, I've seen those error messages more than once. If I were > half-a-bottle more sober, I'm sure I could remember how I fixed > the problem. > > Gentoo offers two (competing?) ways to specify the system-vm. > > #eselect java-vm > Usage: eselect java-vm > Extra actions: > list List Available Virtual Machines > set Set a new system or user vm > show Show the current vm > > #java-config > Usage: java-config [options] > -L, --list-available-vms > List available Java Virtual Machines > -S VM, --set-system-vm=VM > Set the default Java VM for the system > > I seem to recall that the important things changed by these two > gizmos are some symlinks like, for example: > > /etc/java-config-2/current-system-vm -> /usr/lib/jvm//sun-jdk-1.6/ > /usr/bin/java -> run-java-tool > > Maybe I can remember more details tomorrow. > > >