Wednesday, June 8, 2016

CentOS7 ifconfig nmcli nmtui


How to Setup network on centos 7


On CentOS 7 instead of ifconfig , it must be used << ip address >>
or the abbreviated << ip a >> command ...

It seems that ipconfig  is deprecated and superseeded by ip command from iproute2 package

Setup network on CentOS 7 minimal

Type “nmtui” command in your terminal ~ opens Network manager

nmtui is an alternative command for nmcli which is based on “Text User Interface”



hostnamectl set-hostname Your-New-Host-Name-Here


Monday, June 6, 2016

JAVA_HOME Variable in Windows

Setting the JAVA_HOME Variable in Windows


The error : 

The registry refers to a nonexistent java runtime enviorement installation or the runtime is currupted.

The system cannot find the path specified.



After you've installed Java in Windows, you must set the  JAVA_HOME environment variable to point to the Java installation directory.


If you installed the Java Development Kit (JDK) you'll be setting the JAVA_HOME environment variable. If you installed the Java Runtime Environment (JRE) you will follow the same steps but set the JRE_HOME environment variable instead. 


Set the JAVA_HOME Variable

To set the JAVA_HOME variable:
  1. Find out where Java is installed. If you didn't change the path during installation, it will be something like this:
    C:\Program Files\Java\jdk1.8.0_65
  2. In Windows 7 right click My Computer and select Properties > Advanced.
    In Windows 8 go to Control Panel > System > Advanced System Settings.
  3. Click the Environment Variables button.
  4. Under System Variables, click New.
  5. In the Variable Name field, enter:
    • JAVA_HOME if you installed the JDK (Java Development Kit)
      or
    • JRE_HOME if you installed the JRE (Java Runtime Environment) 
  6. In the Variable Value field, enter your JDK or JRE installation path.
    If the path contains spaces, use the shortened path name, for example C:\Progra~1\Java\jdk1.8.0_65
  7. Click OK and Apply Changes as prompted.


Note for Windows users on 64-bit systems
Progra~1 = 'Program Files'
Progra~2 = 'Program Files(x86)'


JAVA_HOME Variable in Windows

Setting the JAVA_HOME Variable in Windows


The error : 

The registry refers to a nonexistent java runtime enviorement installation or the runtime is currupted.

The system cannot find the path specified.



After you've installed Java in Windows, you must set the  JAVA_HOME environment variable to point to the Java installation directory.


If you installed the Java Development Kit (JDK) you'll be setting the JAVA_HOME environment variable. If you installed the Java Runtime Environment (JRE) you will follow the same steps but set the JRE_HOME environment variable instead. 


Set the JAVA_HOME Variable

To set the JAVA_HOME variable:
  1. Find out where Java is installed. If you didn't change the path during installation, it will be something like this:
    C:\Program Files\Java\jdk1.8.0_65
  2. In Windows 7 right click My Computer and select Properties > Advanced.
    In Windows 8 go to Control Panel > System > Advanced System Settings.
  3. Click the Environment Variables button.
  4. Under System Variables, click New.
  5. In the Variable Name field, enter:
    • JAVA_HOME if you installed the JDK (Java Development Kit)
      or
    • JRE_HOME if you installed the JRE (Java Runtime Environment) 
  6. In the Variable Value field, enter your JDK or JRE installation path.
    If the path contains spaces, use the shortened path name, for example C:\Progra~1\Java\jdk1.8.0_65
  7. Click OK and Apply Changes as prompted.


Note for Windows users on 64-bit systems
Progra~1 = 'Program Files'
Progra~2 = 'Program Files(x86)'