Detecting operating system or computer name through a Java servlet

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2010-05-18T05:43:49Z Indexed on 2010/05/18 5:51 UTC
Read the original article Hit count: 161

I have a Java web app that I develop on a Windows machine and will deploy on a Unix machine.

There are some file path settings and permissions details that differ on the two (and there is nothing I can do to change this). Is there some way of detecting which machine the app is sitting on (it's only one of two), either by detecting the operating system or the computer's name so I can then using the appropriate settings.

© Stack Overflow or respective owner

Related posts about java

Related posts about servlet