gehinom ~ # java-config-1 --jdk-home /etc/java-config-2/current-system-vm gehinom ~ # java-config-1 --jre-home gehinom ~ # java-config-1 --javac /opt/sun-jdk-1.4.2.12/bin/javac Only the last one seems to work correctly.
More problems I think: java-config-1 -g VAR returns just the var from current env. Shouldn't it return stuff from 20java, as that's what it does with other parameters? Properly handling this could allow a fix of java-pkg.eclass, which currently determines what VM to use for gen-1 just from VMHANDLE in env. Which can be different from the one that's in 20java, or complete nonsense. If VMHANDLE was set by java-config-1 -g VMHANDLE, that would be fixed. But first java-config-1 would need to read it from 20java and not just return what's in the env :)
This will be fixed with 1.3.5, which will be available as soon as it hits the mirrors.