I was wondering how i would get the battery life of a computer on linux i need for a java jni project i am using a windows and therefore have no way of testing it but i want the code to be platform independent so therefore i need a linux version here is my windows version