ebuild / eselect adds to the system LDPATH: /opt/ibm-jdk-bin-1.4.2.9/jre/bin /opt/ibm-jdk-bin-1.4.2.9/jre/bin/classic It also needs /opt/ibm-jdk-bin-1.4.2.9/jre/lib /opt/ibm-jdk-bin-1.4.2.9/lib Reproducible: Always Steps to Reproduce: install ibm jdk 1.4.2.9 eselect java-vm set system ibm-jdk-bin-1.4 *** install db2 *** db2 create database test db2 connect to test call sqlj.install_jar('file:/tmp/test.jar', 'test') Actual Results: you get the error SQL4301N Java or .NET interpreter startup or communication failed, reason code "2 ". I doubt many people run db2 on Gentoo, but I'm sure this error could be stumbled upon elsewhere.
Is db2 something you can install using emerge?
No. I filed this bug as I was supposing this path issue could effect other programs as well. If its not a concern feel free to close this bug.
(In reply to comment #0) > It also needs > /opt/ibm-jdk-bin-1.4.2.9/jre/lib > /opt/ibm-jdk-bin-1.4.2.9/lib There are no .so libraries to link in these paths, so no use for them in LDPATH. So either it's something else, or the installer is weird and searches LDPATH for jar files or something similar. > Reproducible: Always > > Steps to Reproduce: > install ibm jdk 1.4.2.9 > eselect java-vm set system ibm-jdk-bin-1.4 This command sets the generation-2 system VM, not generation-1, so it can't affect LDPATH anyway. Suggests your assumption could be wrong and it must be something else indeed? In any case, when gen-1 is gone, so should be JDK paths in LDPATH, most probably. I'm closing as NEEDINFO, feel free to reopen and address my concerns above :)