N
N
Newbie2015-10-31 20:37:55
Java
Newbie, 2015-10-31 20:37:55

Where to store Java program files and settings?

If I understand correctly, when a Java program is executed, there is only a working directory (the one in which the user is at the time the program is launched from the console), and not an executable one.
Actually, where and how to properly store the external files and settings necessary for the program? Is there some abstraction layer in the standard library that allows you to get a path like /home/username or %appdata% ? Android has something like this:
Environment.getExternalStorageDirectory()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dimzon541, 2015-11-02
@newbiebad

System.getProperty("user.home")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question