LinuxQuestions.org
Visit Jeremy's Blog.
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 02-27-2011, 06:43 AM   #1
sayed_anjum
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Question My java installation problem


dear friends.
I installed my jdk tools for Linux on Red hat in Desktop folder. The Java did n't work as java -version failed giving response java command not found.
I did make changes in .bash_profile for the path and java_home as suggested by some article on the same web site.Nothing changed.
Again as per instruction i changed the extracted folder to /usr/local folder as installing the java.
i did link with /bin/java to /usr/local/javainstalled/bin/java and the java -version giving result java run time environment 1.6.0_24-b07 .
My question is what made wrong to my former installation. Is it okay now.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-27-2011, 07:14 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
Welcome to LQ.

This is the standard procedure to set up jre / jdk. The commands are :

1) su

2) /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.6.0_24/bin/java 2

3) /usr/sbin/alternatives --config java
 
2 members found this post helpful.
Old 03-12-2011, 09:16 AM   #3
sayed_anjum
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

thanks for the information. I am new to Linux although i have certification in sun solaris. i quit find Linux and sun solaris quite apart.

---------- Post added 03-12-11 at 05:16 PM ----------

thanks for the information. I am new to Linux although i have certification in sun solaris. i quit find Linux and sun solaris quite apart.
 
  


Reply

Tags
jre6


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 installation problem rjvcrisen0 Linux - Software 5 08-01-2007 10:49 AM
java installation problem franklampard Linux - Software 2 09-27-2005 02:53 AM
Java installation problem MathewScott Linux - Software 1 03-18-2005 12:34 PM
Java VM installation problem reefadt Linux - Newbie 7 08-16-2003 09:24 PM
java installation problem... Zerodark Linux - Software 7 03-12-2003 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration