http://Bj83.de

get os type in java

you can get os type by getting these values:

package testapp;
import framework.io.io;
public class systemgetter {
   public static void main(String[] args) {
      // TODO Auto-generated method stub
      io.wl(System.getProperty("os.name")+"\n");
      io.wl(System.getProperty("os.arch")+"\n");
      io.wl(System.getProperty("os.version")+"\n");
   }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: