LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-21-2012, 08:54 PM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Rep: Reputation: Disabled
Java installation steps


Dear All,
I have two machines where below is the steps I did to install java. The funny part when I run javac -version one machine is showing me javac 1.6.0_22 and another showing me 1.7.0_03. What could be the problem here?

Code:
rpm -Uvh /usr/local/jdk-7u3-linux-x64.rpm

alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000

alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000

alternatives --config java
 
Old 05-21-2012, 09:11 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
What distro are you running?
 
Old 05-21-2012, 09:12 PM   #3
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear Craig,
I am using Centos 6.2.
 
Old 05-21-2012, 11:19 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
CentOS 6.2 - http://www.marcsaric.de/index.php/Ce....2#Oracle_Java
 
Old 05-21-2012, 11:26 PM   #5
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear Craig,
If you notice I have done the same steps rite as per your link.
 
  


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
Steps to install java in LINUX Fedora... rkarthi2k5 Linux - Software 1 12-19-2008 08:57 AM
PHP and Java. Steps to follow to be able to start using them. glore2002 Slackware 10 10-07-2008 09:05 AM
DBD installation trouble .. installation steps attached utw-mephisto Linux - Server 1 12-05-2007 11:57 PM
Java programing my first steps spank Programming 4 10-06-2006 03:32 PM
Easy steps to Java plug-in installation RaiReg Mandriva 5 01-26-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 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