How to know when you start the program what operating system it runs?

Met with the problem that the directories on OSes do not converge. For Linux and Windows needs different directories , and if on Windows the path /yourbase works well, in Linux - error. what to do?
July 8th 19 at 16:08
1 answer
July 8th 19 at 16:10

Find more questions by tags Java