I suppose the question is: when you installed your JDK, did
you edit any (or did your distro, depending on how you installed)
any files that are required for the set-up of environment variables?
The "clean" way of setting them would be to create a file
/etc/profile/jdk.sh
with content like
Code:
#!/bin/sh
export JAVA_HOME=/usr/lib/java
export MANPATH="$MANPATH:/usr/lib/java/man"
export PATH="$PATH:/usr/lib/java/bin:/usr/lib/java/jre/bin"
(obviously modified to match your actual paths).
Cheers,
Tink