Windows Server Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 30 June 2013

TO UNINSTALL OPENJDK AND INSTALL JDK with Fedora

Posted on 06:52 by Unknown

 PURPOSE: TO UNINSTALL OPENJDK AND INSTALL JDK with Fedora 16 & others

*********** STEP 1 STARTS ***********

  ==:> remove open jdk  <: span="">

1)   to find installed java packages:   rpm -qa | grep java

2)  to uninstall open jdk :   yum remove java-1.6.0-openjdk-1.6.0.0-68.1.11.5.fc16.x86_64


***********STEP 1 ENDS  ***********
   

*********** STEP 2 STARTS ***********

 ==:>  install jdk on fedora  <: span="">

rpm -Uvh /jdk-7u9-linux-x64.rpm

rpm -Uvh /jre-7u9-linux-x64.rpm

## java ##
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
## javaws ##
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000
 
## Java Browser (Mozilla) Plugin 64-bit ##
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/jre/lib/amd64/libnpjp2.so 20000
 
## Install javac only if you installed JDK (Java Development Kit) package ##
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000

alternatives --config java

Enter to keep the current selection[+], or type selection number: 
Note: java with [+] is currently on use

alternatives --config javaws

alternatives --config libjavaplugin.so

alternatives --config libjavaplugin.so.x86_64

alternatives --config javac

*********** STEP 2 STARTS ***********

*********** STEP 3 STARTS ***********
 

 ==:>  set classpath in fedora <: span="">

vi ~/.bash_profile
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin

$ source ~/.bash_profile or  . ~/.bash_profile


 ** * Set JAVA_HOME / PATH for all user

You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users:
# vi /etc/profile

Next setup PATH / JAVA_PATH variables as follows:

export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin

Save and close the file. Once again you need to type the following command to activate the path settings immediately:
# source /etc/profile 
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • VMWare --windows XP Backup
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1013628 http://kb.vmware.com/selfservi...
  • Post installation of Fedora -Linux first steps
    Post installation of Fedora -Linux first step to be performed Open a terminal. Become superuser by entering 'su' and then the passwo...
  • The difference between unmanaged and managed switches.
    http://www.cisco.com/en/US/prod/switches/networking_solutions_products_genericcontent0900aecd806c7afe.pdf Managed Switch : Managed switches ...
  • Server setup@KM
    KM-dcserver IP address : 192.168.1.2 255.255.255.0 192.168.1.3 DNS:192.168.1.2 KM-dcbackup IP address : 192.168.1.3 255.255.255.0 DNS:192.16...
  • Ethernet_Network_switch
    What is the default user name, password and IP address for Ethernet Direct managed switches ? User name is  root , the password is  root , t...
  • VMware_clone
    http://www.youtube.com/watch?v=UR-GMN5sWEQ
  • Linux Partitioning
    If you look at the Linux file hierarchy, you find the following : • /bin - common binaries • /sbin - Binaries used for system administration...
  • Enable Task Manager
    Method 1 Click Start, Run and type this command exactly as given below: (better - Copy and paste) Method 2 Download and run this REG fix an...
  • Locking your computer--System logoff time
    Locking your computer To help protect your computer, you should log off of it or lock it when you are away. When you log off of your comp...
  • Linux Commands
    Linux Commands Command Description pwd to get the present working directory ls listing out current directory entries cd change directory ...

Blog Archive

  • ▼  2013 (4)
    • ▼  June (4)
      • Increase maximum size pst-files with Outlook 2007
      • Post installation of Fedora -Linux first steps
      • TO UNINSTALL OPENJDK AND INSTALL JDK with Fedora
      • Install Fonts in FedoraProcedure for the fonts ins...
  • ►  2012 (9)
    • ►  July (1)
    • ►  April (2)
    • ►  January (6)
  • ►  2011 (38)
    • ►  November (4)
    • ►  October (4)
    • ►  September (11)
    • ►  August (1)
    • ►  July (1)
    • ►  March (7)
    • ►  January (10)
  • ►  2010 (26)
    • ►  December (1)
    • ►  November (6)
    • ►  September (3)
    • ►  August (10)
    • ►  July (5)
    • ►  May (1)
Powered by Blogger.

About Me

Unknown
View my complete profile