0

I'm interested if there is a way to find out from java applet the OS and the browser in which my java applet is running on client side?

sboda
  • 343
  • 3
  • 10
  • Did you try: `String osName = System.getProperty("os.name"); String osVersion = System.getProperty("os.version");` – akhil_mittal May 13 '15 at 04:58
  • http://stackoverflow.com/questions/11219582/how-to-detect-my-browser-version-and-operating-system-using-javascript – Balaji May 13 '15 at 04:58
  • possible duplicate of [browser version detection from server side with java](http://stackoverflow.com/questions/7469159/browser-version-detection-from-server-side-with-java) – Saurabh Jhunjhunwala May 13 '15 at 04:58
  • Not a duplicate of "detect from server side". This one is about applets (client side). – Thilo May 13 '15 at 05:03
  • @Thilo yes, thank you! And I would like to also find the OS... – sboda May 13 '15 at 05:14

1 Answers1

2

You can detect OS using:

String osName = System.getProperty("os.name"); 
String osVersion = System.getProperty("os.version");

For detecting browser you can check this link.

akhil_mittal
  • 18,855
  • 7
  • 83
  • 82