libpgjava depends on jdk1.1-runtime (>= ??.??). jdk1.1-dev provides jdk-runtime. However the dependency resolution tries to install jdk1.1-runtime because of the versioned depends and jdk-runtime removes jdk-dev. So if I install libpgjava, I lose the java compiler and what not, which means I cant write apps using java and was the point of wanting the java lib.