Getting path to user’s home directory in Java

There is a way to find out path to user’s home folder. Need to get system property:

System.getProperty("user.home");

That’s all.

  • Share/Bookmark

Related posts:

  1. Getting working directory in Java
  2. Using system properties in Java
  3. Getting system root directory in Java
  4. Moving file or directory to other directory in Java
  5. Using Properties in Java

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>