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
Post a Comment