LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-27-2003, 11:45 AM   #1
Selos
Member
 
Registered: Aug 2003
Location: Germany
Distribution: Debian
Posts: 59

Rep: Reputation: 15
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
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
 
Old 08-27-2003, 12:35 PM   #2
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
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.
 
Old 08-27-2003, 08:24 PM   #3
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java bin on red hat chidomen Linux - Software 3 01-12-2005 08:22 PM
java come with Red Hat 8? naijaguy Programming 1 08-12-2004 10:59 AM
Mozilla, Java and Red Hat 9.0 Tutilupo Linux - Software 4 08-12-2003 10:15 AM
upgrading java on red hat 9 mbbender Linux - Software 6 07-07-2003 01:47 PM
Red Hat 7.1, C, C++, Java mikeshn Linux - Newbie 2 02-19-2002 05:13 PM


All times are GMT -5. The time now is 05:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration