LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-06-2003, 01:26 AM   #1
Txlyo
Member
 
Registered: Oct 2003
Posts: 41

Rep: Reputation: 15
how to install java?


as title
i hv download and install the rpm file..
but i found that i seems need to config something in order to use...
how to config it?
 
Old 11-06-2003, 03:14 AM   #2
retep
Member
 
Registered: Sep 2003
Distribution: RedHat/Debian
Posts: 50

Rep: Reputation: 15
Hmm. I downloaded the JDK from http://javasoft.com. IIRC it was wrapped in a script. You run the script, and agree to their license. And that creates the RPM for you. Then its just rpm -Uvfh their RPM. No config required.

Why, what is happening for you?
 
Old 11-06-2003, 10:16 AM   #3
init
Member
 
Registered: Oct 2003
Location: Portland, Maine
Distribution: Gentoo 2004_2 2.6.7r14
Posts: 160

Rep: Reputation: 30
go to http://java.sun.com/webapps/download/Display

get the Linux self-extracting file Make sure it is the SDK!!

run it from /usr/local

This just creates a java<version> directory. if you cd down into the bin you can type java -version and get a read out, but that is not really what you want so.....

then do this:

ln -s /usr/local/java_<versionyoudownloaded> /usr/local/java (or the other way around can never remember :P)

cd ~

vi .bash_profile or .profile depending on your shell pref.

and these lines

JAVA_HOME=/usr/java export JAVA_HOME

Than in you PATH line add this

PATH=$PATH:$JAVA_HOME/bin export PATH

then to source the profile type

. .bash_profile

then you should bge able to ....

echo $JAVA_HOME

and see path to java dir.

and run java -version from any dir..

hope this helps
 
  


Reply



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 does not install in opt but install in usr bbmak Linux - Software 6 10-02-2005 11:13 PM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Java Install marlaina1 Linux - Software 5 03-22-2004 11:58 AM
Java Install Please Help!!! unwrittenlaw Linux - Newbie 22 11-08-2003 11:42 PM
Help with java install (again...) MidgetmanUK Linux - Newbie 3 10-04-2003 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration