LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   java j2re . bin (https://www.linuxquestions.org/questions/linux-newbie-8/java-j2re-bin-143468/)

nOOb1kanobee 02-07-2004 07:08 PM

java j2re . bin
 
So I saved the download of j2re-1_4_2_03-linux-i586.bin to
file:/home/jeremy/Documents.....so question is can someone help step by step to get this installed and working on browser? Or to whatever i need to do with this,basicaly i just wanted to be able to chat, I get the error java executible not found so i am guessing this is what i need?

DrOzz 02-07-2004 07:17 PM

here is a very good step by step

any more questions, dont' hesitate to ask ...

nOOb1kanobee 02-07-2004 07:35 PM

ok thats starting in the right direction,but i am totaly new and do not know how to make the java sub directory or anything

nOOb1kanobee 02-07-2004 08:08 PM

sorry , just really new at this, should i download the file to any in particular?

DrOzz 02-07-2004 08:25 PM

open a terminal and i'll explain the rest ....

Quote:

First, create (as root) a "java" subdirectory in the /usr directory.
ok first it states "as root" so you will type :
su -
and then your root password to be logged as root
then it says create the subdirectory "java" in the /usr directory, so we then navigate to the /usr directory by typing :
cd /usr
and then it wants you to make the directory so you will type :
mkdir java

Quote:

Download the self-extracting (not RPM) file of j2re-1_4_2 from Sun.
you already downloaded the file, so i'll skip this step ;)

Quote:

Move (as root) the file to /usr/java. Cd (as root) to the /usr/java and issue the following 2 commands:
then it says move "as root" to the file /usr/java ... now since you should still be logged as root, you don't have to worry about that, and since you should be still in the /usr folder then to get to the folder specifed you type :
cd java
if for some reason you left the /usr folder, then issue the full command as :
cd /usr/java

then the rest of the guide is step by step, which i personally don't think i could explain any further than it is ... but if you do get stuck, just come back and ask ;-)

nOOb1kanobee 02-07-2004 08:32 PM

Ok i think i had it figured out before you replied but thanks so much going thru those steps made it easier for me.:)

nOOb1kanobee 02-07-2004 08:37 PM

well i went to type the first command, and i got. chmod: failed to get atributes for j2re....etc no such file or directory? :(

DrOzz 02-07-2004 08:52 PM

well there is three things i can think of :
a) your not in the directory where the file resides
or
b) your obviously not typing the filename correctly ..
or
c) you dont' have the file
(but you said you downloaded it, so we can rule out this option :p)

p.s. a little tip is something called "tab completion"
and what it is, is instead of typing the full filename manually which can get tedious with longer names, you use tab to complete it for you .... so just for example type the following :
j2re <PRESS TAB>
and it will complete the rest of the word for you ... that is if there is not another file that has the first 4 characters of j2re, and if there is, you press tab again and it will list the files for you ...
so i guess the benefit of using this technique is the fact you don't have to sit there and type the whole filename, and the fact that you know it will be spelled right :D

nOOb1kanobee 02-07-2004 09:20 PM

well the saved file is in file:/home/jeremy/Documents so is that a problem?

DrOzz 02-07-2004 09:21 PM

it don't matter where you save it ...
just open a terminal and change in the directory and then follow the steps ..

nOOb1kanobee 02-07-2004 09:23 PM

grrrrrrrrrrrrrrrrrr! lol

nOOb1kanobee 02-08-2004 12:16 AM

ok something is really screwy here, can i delete the directory i made? I tried to start from scratch but it sais directory isnt empty i made it wron i think because it is java/usr/java how can i fix this to try all this again?

nOOb1kanobee 02-08-2004 12:26 AM

n/m i got it had to force it ty anyway

nOOb1kanobee 02-08-2004 12:47 AM

help?

nOOb1kanobee 02-08-2004 01:47 AM

root@localhost java]# chmod a+x j2re-1_4_2_-linux-i586.bin
chmod: failed to get attributes of `j2re-1_4_2_-linux-i586.bin': No such file or directory
ok so what is going on here why is this happening?


All times are GMT -5. The time now is 06:51 PM.