Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
antでFreeBSDを検出する方法はありますか?os.nameLinuxとして表示して使用しました。FreeBSDとLinuxを区別したい。
os.name
使用uname -aするのは良いでしょう....あなたはそれをこのように行うことができます....
uname -a
uname -a | grep FreeBSD
JDKがFreeBSDネイティブではなくエミュレーションで実行されているLinuxバージョンである場合、それはOSがLinuxとして報告されていることを説明している可能性があります。