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

  • 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: ...
  • (no title)
    Snapshot - Restoring a volume from Dos Quick steps Boot your system from a DOS boot disk. Below it is assumed that your image data are acc...
  • 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...
  • 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...
  • VMWare --windows XP Backup
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1013628 http://kb.vmware.com/selfservi...
  • 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...
  • (no title)
    Install Fonts in Fedora Procedure for the fonts installation Log in as root or use su at command line $ su Go to the font storage directory:...
  • To Create User in CVS (JAVA)
    The below is the cofiguration settings for the CVS user creaton : Example: d:\CVSNT --->Enter Key set cvsroot = :SSPI:localhost:/km-repo ...
  • Linux Partitioning
    If you look at the Linux file hierarchy, you find the following : • /bin - common binaries • /sbin - Binaries used for system administration...
  • 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...

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