get Current Working Path - Java java.lang

Java examples for java.lang:System

Description

get Current Working Path

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        System.out.println(getCurrentWorkingPath());
    }//from   ww w. j  a v a 2 s .c  o m

    public static String getCurrentWorkingPath() {
        return System.getProperty("user.dir");
    }
}

Related Tutorials