-i've succesfully installed java but a bit blur about configure it....
-this is what i did....
1) added at /etc/profile (vi /etc/profile)
#before
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r $i ]; then
. $i
fi
done
unset i
#after adding
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
JAVADIR=/usr/java/j2re1.4.2_04
PATH=$JAVADIR/bin:$PATH
MANPATH=$JAVADIR/man:#MANPATH
LD_LIBRARY_PATH=$JAVADIR/lib:$LD_LIBRARY_PATH
export PATH MANPATH LD_LIBRARY_PATH
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r $i ]; then
. $i
fi
done
unset i
2) added at /etc/ld.so.conf (vi /etc/ld.so.conf)
#before
[root@nbwsmy1 etc]# more ld.so.conf
/usr/local/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/mysql
/usr/lib/qt-2.3.1/lib
[root@nbwsmy1 etc]#
#after
[root@nbwsmy1 etc]# more ld.so.conf
/usr/local/lib
/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/mysql
/usr/lib/qt-2.3.1/lib
/usr/java/j2re1.4.2_04/lib
[root@nbwsmy1 etc]#
3) Run /sbin/ldconfig
[root@nbwsmy1 etc]# /sbin/ldconfig <enter>
[root@nbwsmy1 etc]#i
4)restart the pc
im truly a beginner in linux