Skip to main content

Multiple JDK on Windows

 Installation of JDK is straight forward for Windows, just download JDK and install.

There are situation where certain type of program require specific version of JDK and JRE. In such case you will have more then one version of JDK installed on your machine and you will have to switch JDK version based on the need of the program. 

Configure Java

Set up System Environment variable

JAVA_HOME = C:\Program Files\Java\jdk-11.0.8\bin

In Path variable append extra entry for JAVA_HOME

Path = %JAVA_HOME%

Check environment variable and Java in cmd

echo %JAVA_HOME% 

java -version


Switch JDK 

Just edit the JAVA_HOME system variable and point to new JDK location. You don't have to change Path variable.

JAVA_HOME = C:\Program Files\Java\jdk-1.8\bin


Comments

Popular posts from this blog

Clear Zimbra Mail Queue

If you want to clear mail queue from specific email address run the following command in your terminal. Below will remove mail queues, by checking FROM sender. eg. remove all mail queues sent by info@example.com /opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($7 == "info@example.comt") print $1 } ' | tr -d '*!' | xargs -rn1 /opt/zimbra/postfix/sbin/postsuper -d Below will remove mail queues, by checking TO sender. eg. remove all mail queues sent to info@example.com /opt/zimbra/postfix/sbin/mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { if ($8 == "info@example.comt") print $1 } ' | tr -d '*!' | xargs -rn1 /opt/zimbra/postfix/sbin/postsuper -d

Know your Lha Zha, Sog Zha, Shi Zha

There is believe in Buddhism, that an individual person have got their own lucky day and bad luck day in a week. They are derived from the twelve animals similar to chiness horscope. Your birth year tells you which Buddhism zodiac sign you below to. Lha Zha and Sog Zha are belived to be good day while Shi zha is consider bad day.