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?

megaspaz 02-08-2004 01:55 AM

is the file in that java folder? from you error message, it doesn't look like you put the file in that folder. is that java folder /usr/java? you need to either copy the or move *.bin file from your download directory to /usr/java. where did you download the *.bin file at?

nOOb1kanobee 02-08-2004 01:58 AM

the bin file is in my file://home/jeremy/documents
i am trying to figure out how to move this i am really new at this

megaspaz 02-08-2004 02:56 AM

well you need to run the bin file first you shouldn't have to move anything. in the shell use these commands. make sure your paths use the correct upper or lowercase letters.

# cd /home/jeremy/documents
# su
# enter root password: ******
# ./java*.bin

the question is what java package did you get. if you got the self extracting rpm, then all you have to do is click the rpm file or use the command:
# rpm -ivh java*.rpm

i just usually grab the self extracting rpm. i never used any other java install packages, so i don't really know what those instructions would be. i'm going to assume that you got the same java package as in the link posted earlier. try following those directions if you didn't get the self extracting rpm package.

lozz1978 02-08-2004 04:27 AM

Ok here goes.

1, Download the java bin file,
type cd /where-ever-you-saved-the-bin-file-to

2, using xterm,goto the directory where you saved the java.bin file, Type "chmod u+x name of the java bin here,

3, Now type "./name of the java file.bin" ( this will extract the bin file and make a new directory)

This is where it get a little tricky!

4, goto "lib/mozilla/plugins" do "pwd" to make sure your in the right directroty, then type "ln -s /to/the/location/of/libjavaplugin_oji.so"

Issue the ls -1 command to confirm that the sym link has been created.

Your done

nightjar 02-08-2004 04:34 AM

you are not in the same dir of the file
type ls (=equeal dir)
and you can see if the file is inside the dir where you are

lozz1978 02-08-2004 07:09 AM

This Is How You Install Java!


[thd0n@Svr1 thd0n]$ cd java (my directory i creaed in home)
[thd0n@Svr1 java]$ ls -1
j2re-1_4_2_03-linux-i586.bin
[thd0n@Svr1 java]$ chmod u+x j2re-1_4_2_03-linux-i586.bin
[thd0n@Svr1 java]$ ./j2re-1_4_2_03-linux-i586.bin
Here it goes on about the licence agreement..keep pressing space.
Do you agree to the above license terms? [yes or no]
yes (Type yes and hit enter)
Unpacking...
Checksumming...
Extracting...
Extracts loads of files
#Done.
[thd0n@Svr1 java]$ ls -1
j2re1.4.2_03/
j2re-1_4_2_03-linux-i586.bin*
[thd0n@Svr1 java]$ cd j2re1.4.2_03/
[thd0n@Svr1 j2re1.4.2_03]$ ls -1
bin/
CHANGES
ControlPanel.html
COPYRIGHT
javaws/
lib/
LICENSE
man/
plugin/
README
THIRDPARTYLICENSEREADME.txt
Welcome.html
[thd0n@Svr1 j2re1.4.2_03]$ cd plugin
[thd0n@Svr1 plugin]$ ls -1
desktop/
i386/
[thd0n@Svr1 plugin]$ cd i*
[thd0n@Svr1 i386]$ ls -1
ns4/
ns610/
ns610-gcc32/
[thd0n@Svr1 i386]$ cd ns610-gcc32/
[thd0n@Svr1 ns610-gcc32]$ ls -1
libjavaplugin_oji.so* (THIS IS THE JAVA FILE YOU NEED TO LINK TOO)
[thd0n@Svr1 ns610-gcc32]$ pwd
/home/thd0n/java/j2re1.4.2_03/plugin/i386/ns610-gcc32 (HERE IS THE PATH TO THAT FILE)
[thd0n@Svr1 thd0n]$ su
Password:
[root@Svr1 thd0n]# locate netscape/plugins
/usr/local/netscape/plugins
/usr/local/netscape/plugins/libnullplugin.so
/usr/local/netscape/plugins/flashplayer.xpt
/usr/local/netscape/plugins/libflashplayer.so
[root@Svr1 thd0n]# cd /usr/local/netscape/plugins
[root@Svr1 plugins]# ls -1
flashplayer.xpt
libflashplayer.so
libnullplugin.so*
[root@Svr1 plugins]# ln -s /home/thd0n/java/j2re1.4.2_03/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
[root@Svr1 plugins]# ls -1
flashplayer.xpt
libflashplayer.so
libjavaplugin_oji.so
libnullplugin.so*
[root@Svr1 plugins]#

And thats how to install Java on linux, its all there, to check its working click "Help" then "About-Plugins" Java should be listed.

nightjar 02-08-2004 05:46 PM

To lozz1978


I can't understand
:rolleyes: :) :D :cool: :confused: :p :p :p :p l:twocents: :lol:

nOOb1kanobee 02-08-2004 11:08 PM

OK I have the file j2re-1_4_2_03-linux-i586.bin . Is this gonna let konqueror use java applets such as yahoo? I dont have any other browsers except for Kon. If I install the file how do i get Kon to work with it?

nightjar 02-09-2004 03:19 AM

Setting the Konqueror you'll find a tab with java

nOOb1kanobee 02-09-2004 03:41 AM

ok so i have java enabled on kon so why isnt it working?

nOOb1kanobee 02-09-2004 04:21 AM

FINALY GOT IT WORKING YAHOOOOOOOOOOOOOOO! WOW THANKS EVERYONE FOR THE HELP, JUST HAD TO FIGURE OUT WHERE THE EXCUTIBLE WAS AND PUT THAT IN THE PATH, AWESOME NOW, FIGURING EVERYTHING ELSE OUT:)

nightjar 02-09-2004 04:52 AM

good luck
we're happy if u solve ur trouble

ok lozz1978?
:)

lozz1978 02-09-2004 05:46 AM

The instructions i supplied are correct, Which parts dont you understand ?

You got me all confused now ??:confused: :confused: :confused:


All times are GMT -5. The time now is 02:24 AM.