I know we can use System.getProperty("os.name");
to get the os name. But due to some reason someone has set an environment variable called JAVA_TOOL_OPTIONS="-Dos.name=Windows 7"
which is causing not to get the original OS name instead its always getting the OS name as Window 7.
Do we have any way where we can get the original OS details?