Find name of linux distro from java -


we writing small library in java needs collect information underlying system. able read of stuff system properties in java, cannot seem find right way extract name of distro when run on linux. call

system.getproperty("os.name"); 

return "linux" (which collect) looking way e.g. "ubuntu" well. need solution in java , not have /etc/release parsing

to reliably , accurately impossible, best can suggest take output of 'uname -a' , use that.

note: not java limitation - there no common (and accurate) means of identifying distribution.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -