Video Tutorial: How to get windows username in Java

In this video you will learn to get windows username in Java

Video Tutorial: How to get windows username in Java

How to get windows username in Java

Java is a set of computer software and designation developed by Sun Microsystems and later obtained by the Oracle corporation which offers a system for positioning it in a cross work bench . Java is used for various computing platforms from mobile phones to super computers. Java apps run in safe computer security ambience to offer as many applications as possible and can be implanted in html pages as well.

Here is the video tutorial of "How to get windows Username in Java?":

In this tutorial we will learn how to get windows user name in java in a few easy steps.

  1. This is a simple program and from the system.get property and by specifying username we can obtain the user name.

  2. The file option is clicked followed by new option followed by package and it was named.

  3. A new class is created by clicking on the new option followed by class and likewise it was also named.

  4. The user name was copied and then pasted .And then the source option was clicked by format option.

  5. We have obtained the function system .getproperty.username. It was right clicked vfollowed by run as and then java application. And finally we can observe the name of the user i.e “comp 15”