当前位置: 技术问答>linux和unix
怎么在linux下用java取得它的版本号:version
来源: 互联网 发布时间:2016-06-14
本文导语: 怎么在linux下用java取得它的版本号。请大家给点建议哈。谢谢。 | $ java --version java version "1.4.2" gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14) Copyright (C) 2006 Free Software Foundation, Inc....
怎么在linux下用java取得它的版本号。请大家给点建议哈。谢谢。
|
$ java --version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Runtime.exec(uname -r)