LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Java and Red Hat (https://www.linuxquestions.org/questions/linux-newbie-8/java-and-red-hat-86292/)

Selos 08-27-2003 11:45 AM

Java and Red Hat
 
hi
i found a topic about Red Hat and Sun Java. I downloaded the 2 files for Red Hat from the download site, the sdk and the other thing jre. so now i have both finished to download but i think i do s.th. wrong. these both files should be self extracting, they are in the format *.rpm.bin, but when i double click them the text editor pops up and show me the content of the file, but there is no extracting :confused:
and the other thing is that it's said to put them to /usr/java but i only have /usr/include/java and so i am somewhat confused :)
would be great if anyone could offer a how-to :)

jdruin 08-27-2003 12:35 PM

You can download a version of the SDK and IDE from Sun at:

http://java.sun.com/webapps/download...-bin-linux.bin

This is easily installed using the install instructions at:

http://java.sun.com/j2se/1.4.1/install-s1s4-linux.html

Once you get it installed whereever you want it, which does not have to be in any particular directory, go to the /etc/profile file and add:

pathmunge <path/to/your/java/installation/wherever/that/is>

so that when you run the java command you will not need to type in that whole path.

If you do not know where the install program jammed your files, do a:

find / -name bin

which will report several results but choose the one that has:

java/bin

somewhere in the path. THis is the java binary directory and is the one you want to pathmunge. Good luck. Reply if this helps so others know too.

slackmagic 08-27-2003 08:24 PM

hi jdruin,

first off all I assume that you're running RH 9.0 as stated through your info.

Let me tell you how I got java to work on my browsers (mozilla/galeon) - haven't tried netscape / konqueror and any others yet.

First I downloaded the rpm.bin to my home dir (/home/username/) at
http://java.sun.com/webapps/download...?BundleId=8572

after that I opened the terminal

1) chmod a+x j2re-1_4_2-linux-i586-rpm.bin
2) ./j2re-1_4_2-linux-i586-rpm.bin

it will start the script and display a license agreement screen, just say Y or YES ( I forgot) and once done, it'll create the .rpm file for you that you can install

3) su
4) enter password becoming root
5) rpm -Uvh j2re-1_4_2...-rpm
6) exit

now that you have installed the java plugin, the browsers need to know that it should be associated with it

the way I did it is following

7) mkdir ~/.mozilla/plugins
8) cd ~/.mozilla/plugins
9) ln -s /usr/java/j2re1.4.2/plugin/i386/ns610/libjavaplugin_oji.so

now mozilla and galeon (at least) should work with the java plugin...on the other browsers you should just do the same or make changes through GUI (haven't tried it yet since I only use galeon) :)

hope this helps!


All times are GMT -5. The time now is 01:15 AM.