My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.lineadecodigo.java.basico.system;

/**
* @file SistemaOperativo.java
* @version 1.0
* @author Linea de Codigo (http://lineadecodigo.com)
* @date 17-febrero-2009
* @url http://lineadecodigo.com/2009/02/18/conocer-el-sistema-operativo-con-java/
* @description Saber el sistema operativo en el que se ejecuta el código java
*/

public class SistemaOperativo {

public static void main(String[] args) {
String sSistemaOperativo = System.getProperty("os.name");
System.out.println(sSistemaOperativo);
}

}

Change log

r104 by vcuervo on Feb 17, 2009   Diff
Corregidos los comentarios.
Go to: 
Project members, sign in to write a code review

Older revisions

r103 by vcuervo on Feb 17, 2009   Diff
Conocer el nombre del sistema
operativo con Java.
All revisions of this file

File info

Size: 550 bytes, 19 lines
Powered by Google Project Hosting