ShowUserDir.java Source code

Java tutorial

Introduction

Here is the source code for ShowUserDir.java

Source

    class ShowUserDir {
        public static void main(String args[]) {
            System.out.println(System.getProperty("user.dir"));
        }
    }

    The following
    properties are available:

file.separator

java.specification.version

java.
    vm.version

    java.class.
    path

    java.vendor

line.separator

java.class.version

java.
    vendor.url

    os.arch

java.
    compiler

    java.version

os.
    name

    java.ext.dirs

java.
    vm.name

    os.version

java.
    home

    java.vm.specification.name

path.
    separator

    java.io.tmpdir

java.
    vm.specification.vendor

    user.dir

java.
    library.path

    java.vm.specification.version

user.
    home

    java.
    specification.name

    java.vm.vendor

user.name

java.specification.vendor