Alguem sabe quais metodos Capturaram as Configurações do Computador
por ex: Processador, Memoria, Disco
Pra Capturar a Maquina Virtual o SO e as Config de Rede Consegui assim:
//captura o system operacional
public void capturarSO() {
String osName = System.getProperty("os.name").toLowerCase();
String osVersion = System.getProperty("os.version").toLowerCase();
String osArch = System.getProperty("os.arch").toLowerCase();
jlSO.setText(osName);
jlSOVersao.setText(osVersion);
jlSOArch.setText(osArch);
// System.out.println("Voce esta utilizando: "+osName);
}
public void capturarJava() {
String javaVersion = System.getProperty("java.version").toLowerCase();
String javaHome = System.getProperty("java.home").toLowerCase();
String javaName = System.getProperty("java.vm.name").toLowerCase();
String javaVmVersion = System.getProperty("java.vm.version").toLowerCase();
String javaClassPath = System.getProperty("java.class.version").toLowerCase();
jlJavaVersao.setText(javaVersion);
jlVm.setText(javaName);
jlJavahome1.setText(javaHome);
jlVmVersion.setText(javaVmVersion);
jlClassPath.setText(javaClassPath);
}
@SuppressWarnings("static-access")
public void capturarInfoRedeCliente() {
try {
InfoRede ir = new InfoRede();
jlIpLocalhost.setText(InetAddress.getLocalHost().getHostAddress());
jlEndMAC.setText(ir.getMacAddress());
jlNomeHost.setText(InetAddress.getLocalHost().getHostName());
jlNomeMaquina.setText(InetAddress.getLocalHost().getCanonicalHostName());
} catch (IOException ex) {
Logger.getLogger(TelaSobre.class.getName()).log(Level.SEVERE, null, ex);
}
}
flw