V
V
Volodar Znatsky2016-06-07 17:05:43
Java
Volodar Znatsky, 2016-06-07 17:05:43

How to find out when you start a program on which operating system it starts?

I met with the problem that the directories on operating systems do not converge. Linux and Windows require different directories, and while /yourbase works well on Windows, it fails on Linux. what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fat Lorrie, 2016-06-07
@ja8mraz

System.getProperty("os.name");
System.getProperty("os.version");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question