Home.dir is not a java property as specified here:
https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
If by working directory you mean the users working directory then user.home should work.
Example:
System.out.println(System.getProperty("user.home"));
Outputted:
C:\Users\User
If you mean the .jars working directory then I do not believe such a property exists. Instead use:
your_class.class.getProtectionDomain().getCodeSource().getLocation().getPath();
This will return a string specifying where the jar is situated currently.
Example:
System.out.println(new File(**TestLighting.class.getProtectionDomain().getCodeSource().getLocation().getPath()**));
(new File() is to get the correct formatting, it was /C:/...)
Outputted:
C:\Users\User\Documents\Java\Netbeans\Engine\build\test\classes
(This is the path of where the jar is being run from)
If home.dir is a system environment variable then you would use System.getenv()