Thursday, 21 December 2017

Install IntelliJ IDEA on CentOS using Terminal


To install IntelliJ IDEA on CentOS using Terminal

Step:1
       
         Download the tar.gz file from JetBrain

          [ https://www.jetbrains.com/idea/download/#section=windows ]

Step:2

          Double click on downloaded file and extract into  /tmp

Step:3

           Open a terminal

Step: 4

          Switch to root user

         command
         su root

Step: 5

         command
         chown -R root:root /tmp/idea*

Step:6
   
        Move the content to /opt

        command
        mv /tmp/idea* /opt/idea

Step:7
   
       Make  Symlink
   
       command
       ln -s /opt/idea/bin/idea.sh  usr/local/bin/idea.sh

Step:8

      Open terminal and execute the following command to open IntelliJ IDEA
 
      command
      idea.sh




     
   

Wednesday, 20 December 2017

Install JDK on CentOS using Terminal

Install JDK on CentOS using Terminal


To install JDK on CentOS , we need to follow the following steps:

1. Verify the existing java version
     
       command:
        java  -version
     
       response:
       java-1.6.0-openjdk

2. Remove OpenJDK if you find.
   
      command:
      yum remove java-1.6.0-openjdk

3. Then donwload the SDK from oracle by visiting the following site
     http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

4. Go to the downloaded path , and execute the command:

    command
    sudo rpm -ivh jdk-8u25-linux-x64.rpm

5. Check java version now
 
    command
     java -version

     response:
     jdk1.8.0.151

6.  Create JAVA_HOME and add it into the PATH

    command
    export JAVA_HOME =/ust/java/jdk1.8.0.151
    export PATH= $PATH:$JAVA_HOME

7. Verify the Path

   command
   echo $JAVA_HOME
   echo $PATH