jSensors icon indicating copy to clipboard operation
jSensors copied to clipboard

No Output

Open UgurKacak opened this issue 7 years ago • 3 comments

@profesorfalken I include all .jar files and try to run example code which is

List<Cpu> cpus = components.cpus; if (cpus != null) { for (final Cpu cpu : cpus) { System.out.println("Found CPU component: " + cpu.name); if (cpu.sensors != null) { System.out.println("Sensors: ");

          //Print temperatures
          List<Temperature> temps = cpu.sensors.temperatures;
          for (final Temperature temp : temps) {
              System.out.println(temp.name + ": " + temp.value + " C");
          }

          //Print fan speed
          List<Fan> fans = cpu.sensors.fans;
          for (final Fan fan : fans) {
              System.out.println(fan.name + ": " + fan.value + " RPM");
          }
        }
    }
}

cpus.size() getting 0; But there is no ouput also there is no error.

UgurKacak avatar Jul 04 '17 17:07 UgurKacak

I'm getting the same issue. Both cpu and gpu lists are empty.

VarunAFV avatar Jul 30 '17 13:07 VarunAFV

Hello,

May you please specify what is your system? Windows? Linux? Are you executing it in a desktop, a laptop, a Virtual Machine?

It would be easier to analyse if you can provide some debug information. Could you just launch the JAR as standalone application and post here the produced output?:

java -jar [jSensorsFILENAME].jar --debug

Thanks

profesorfalken avatar Jul 30 '17 17:07 profesorfalken

same. the value from java -jar [jSensorsFILENAME].jar --debug is

no main manifest attribute, in .\jSensors-2.0.2.jar

AndreiD avatar Nov 03 '17 14:11 AndreiD