Java problem

Craig White craig at tobyhouse.com
Fri Dec 28 21:42:29 UTC 2007


On Fri, 2007-12-28 at 23:39 +0200, eng.waleed wrote:
> Hi
> I installed the jre from the file jre-6u3-linux-i586-rpm.bin and it
> give me done with no prob , but there is no java file in /usr/bin/ ,
> can any one suggest some thing about that ? 
----
look in /usr/java

if you know what you want, you can create a symbolic link in /usr/bin
but that should never be necessary.

What you probably want to do is set some environmental variables...

# cat /etc/profile.d/java.sh
#
# For java-gcj-compat package standard install of fedora
# PATH=$PATH:/usr/share/java
# CLASSPATH=/usr/share/java
# export CLASSPATH

CLASSPATH=/usr/java/jre
export J2RE_HOME=/usr/java/jre
export PATH=$J2RE_HOME/bin:$PATH
JAVA_HOME=/usr/java/jdk1.6.0_03
export JAVA_HOME

where I have created some symbolic links...

# ls -l /usr/java/
total 4
lrwxrwxrwx 1 root root   16 2007-12-17 11:50 default -> /usr/java/latest
drwxr-xr-x 9 root root 4096 2007-12-17 11:50 jdk1.6.0_03
lrwxrwxrwx 1 root root   26 2007-12-17 11:51 jre
-> /usr/java/jdk1.6.0_03/jre/
lrwxrwxrwx 1 root root   21 2007-12-17 11:50 latest
-> /usr/java/jdk1.6.0_03

Craig




More information about the users mailing list