dcsimg
How to get the OS in Java Application
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Usman_Ali
Posted On:   Monday, August 27, 2001 07:55 AM

I am developing a java application.
I want to get Operation System that which OS is installed on machine or on server.

Re: How to get the OS in Java Application

Posted By:   Luigi_Viggiano  
Posted On:   Monday, August 27, 2001 08:10 AM

Try this code:

System.out.println(System.getProperty("os.name") + " " +
System.getProperty("os.version"));

Regards,

Luigi
About | Sitemap | Contact