Questions tagged [oshi]

For questions specific to the usage of the JNA-based Operating System and Hardware Information library for Java named "OSHI". When using this tag also include the more generic [java] tag.

28 questions
5
votes
2 answers

Java (Windows) - By process id, get memory usage, disk usage, network usage

I've been investigating the best approach to achieve the following data for a specific process: CPU usage Memory usage Disk usage Network usage I decided to go with OSHI (Operating system & hardware information) API. Unfortunate for me , this API…
Benma
  • 105
  • 1
  • 9
4
votes
3 answers

Import library Oshi

I would like to develop a program that shows the computer information. I found a library called "Oshi". When I import this library and run my code, there is an exception: Exception in thread "main" java.lang.NoClassDefFoundError:…
Michael
  • 101
  • 2
  • 8
3
votes
1 answer

Java OSHI (Operating System and Hardware Information) library NoSuchMethodError

I receive the following error when using the OSHI API (https://github.com/oshi/oshi). I have the following dependencies in my Maven project (I added SLF4J to fix the error based on other Stack Overflow posts, but didn't help):