Linux in General > Linux Tutorials & How To's

Installing & configuring JAVA / How to / tutorial

<< < (2/3) > >>

e_zoo_din:
-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 :(

xhunter:
for me i installed java by this manner
i download it from java site as bin file
then
in the terminal i wrote
bash jr2e-1_4_2_04-linux-i586.bin
the alot of things displayed such as agreement and so on

and then it will unpack the file to /usr/java
u will find it there
and thats all

but i wanna know how to run applets cuz its disabled??????


 :wink:

mpower:
Hi, i just came from LQ via a users link. I i'm curious as to know why my java scripts dont work on my linux server. Do i need this installed on my box to allow processing of java scripts? Thankx

Ricky:
linux server !!
Hmm.. I think you have got javascipt disabled in your browser . Check it ;)

mpower:
Hmmm can't be. It seems i've order mulitple things on the net that was java based (forms or what not). On my server id doesnt' work for some odd reason.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version