LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Java symlink (https://www.linuxquestions.org/questions/fedora-35/java-symlink-159774/)

mobo 03-19-2004 07:45 AM

Java symlink
 
I have fresh installed fedora Core 1 then installed Netscape to accompany Mozilla in /usr/lib..Installed j2re-1_4_2_04-linux-i586-rpm.bin and have been following ://fedoranews.org/tchung/sunjava/ this tutorial on how to proceed. all is running well up to the part where I have to enter

$ cd ~/download
It continues to give me the" command not found" with the dollar sign and without I get "No such file or directory"

Anyone shed some advice on the matter please.

flyfishin 03-19-2004 07:53 AM

Where did you download java.sh to? In the article he assumes you put the article in the download directory of the user that you are logged in as. If you are logged in as bob then cd ~/download actually takes you to /home/bob/download. ~ is a shortcut to indicate the current users home directory.

mobo 03-19-2004 07:57 AM

Im logged in as root and the download is in /root/

Is that correct ?

flyfishin 03-19-2004 08:23 AM

If the java.sh file is in /root and you are logged in as root then you would issue the command cd ~ or cd /root or cd. The cd command with nothing else takes you to the current users home directory also.

mobo 03-19-2004 08:33 AM

Thanks for the reply..

I did get these three commands done
$ cd ~/download
$ chmod 755 java.sh
$ sudo cp java.sh /etc/profile.d


Here is what It looks like:
[
[root@localhost profile.d]# cd ~
[root@localhost root]# chmod 755 java.sh
[root@localhost root]# sudo cp java.sh /etc/profile.d
[root@localhost root]#

Now it says to reboot then check the path by:
$ env | grep JAVA_HOME
JAVA_HOME=/usr/java/j2re1.4.2_03

My question is to simply exit the terminal should I do anything special like exit or anything ?

mobo 03-19-2004 08:50 AM

Logged out & in anyway and whan I tried the Java it didn't work so I moved to the nescape plugin directory and ran the ln -s /usr/java/j2re1.4.2_04/plugin/i386/ns610-gcc32/libjavaplugin_oji.so command and Voila..

Thanks for your assistance you have been a great help and very much appreciated...:)


All times are GMT -5. The time now is 08:43 PM.