Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 16-01-2009, 05:02 PM   #1 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default upgrade java version


when i installed Cent OS on my machine jre-1.4.2 was automatically installed.
java -version command gives the output.
java version 1.4.2

now i have installed jdk-1.6_11 or jre 1.6 on the machine. now my java -version command still shows 1.4.2

i changed the path variable in /root/.bash_profile
Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_11/bin
JAVA_HOME=/usr/java/jdk1.6.0_11
## JAVA=/usr/java/jdk1.6.0_11/bin
export PATH
export JAVA_HOME

unset USERNAME
plz let me know where i m going wrong.

thanks
iinfi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-01-2009, 05:28 PM   #2 (permalink)
Apprentice
 
thinknano's Avatar
 
Join Date: Jan 2009
Location: A planet called Earth.
Posts: 57
Default Re: upgrade java version

:O what to do????
thinknano is offline  
Old 16-01-2009, 10:01 PM   #3 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: upgrade java version

append $PATH to the last!
Quote:
PATH=$HOME/bin:/usr/java/jdk1.6.0_11/bin:$PATH
That shud work!

or else the standard procedure is this!
http://news.softpedia.com/news/How-t...-6-39724.shtml
Quote:
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_11/bin/java 2
/usr/sbin/alternatives --config java
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 17-01-2009, 12:23 PM   #4 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,518
Default Re: upgrade java version

thanks man ... will try it in off on monday.
tc
iinfi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java programming..how can I distribute java program....? Manojap Programming 5 16-05-2009 02:46 PM
Virtual Box upgrade from version 1.5.51 to 2.0.4 Subhashish.laha Open Source 4 11-12-2008 03:12 AM
How to install new version of utorrent over older version webgenius Software Q&A 3 25-02-2007 10:05 AM
Any one lately Updated Your Java Phone to version CXC1250477R1GB001061129 Pravas Mobiles and Tablets 2 16-01-2007 02:04 PM
How to upgrade to a new version of gtk in linux? prashanthmpai Open Source 1 08-11-2005 08:18 PM

 
Latest Threads
- by soumya
- by clmlbx
- by Charan
- by Sujeet
- by reddick

Advertisement




All times are GMT +5.5. The time now is 12:17 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2