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

  • Installation Guide for MOSS2007
    Installation Guide for MOSS2007 Hardware requirements  Front-end Web server and application server computers: a dual-processor computer wit...
  • linux Specific command wise Decsription
    1.alias Create an alias, aliases allow a string to be substituted for a word when it is used as the first word of a simple command. Syntax: ...
  • Steps for unread mails as read mails in Gmail
    Over a period of time you may have tons of unread emails in your Gmail Inbox, most of these emails may be months or years old and navigating...
  • Network settings for VMWare Fusion
    Network settings for VMWare Fusion Posted October 6th, 2010 by David Gabbe in • Bridged • Fusion • NAT • network • VMWare By default VMWare...
  • 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...
  • ISA Server 2004 Standard Edition Configuration Guide
    ISA Server 2004 Standard Edition Configuration Guide For the latest information, please see http://www.microsoft.com/isaserver/. Contents Ch...
  • Performing a Windows repair on a Windows XP virtual machine in Fusion
    Performing a Windows repair on a Windows XP virtual machine in Fusion Symptoms You get...
  • To enable calender in user system after removing admin Rights in domain
    Since there is a local security policy on each computer that allows/disallows setting the system time, you should be able to configure a gro...
  • How to reinstall the Smart Card service on Windows XP
    How to reinstall the Smart Card service on Windows XP If you're looking for a way to re-install the smart card service on Windows XP, th...

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