I cant figure out why System.getProperty("home.dir") is returning null instead of the current working directory.
I am using Eclipse Mars2.0 IDE on Ubuntu 16.04. I guess, this hardly matters which IDE I am using or the OS version.
package test;
public class testing {
public static void main (String args[])
{
System.out.println(System.getProperty("home.dir"));
}
}
I am expecting to get a return for this code as something like /home/[user]/Workspace/test