S1.? 查詢當(dāng)前java版本 ?$ java -version
S2.? 配置環(huán)境變量? $ vi ~/.bash_profile? ? $ source ~/.bash_profile,命令行執(zhí)行$PATH,確認(rèn)添加成功
Mac系統(tǒng)的環(huán)境變量,加載順序?yàn)椋?etc/profile 、 ?/etc/paths 、~/.bash_profile、 ~/.bash_login 、~/.profile、 ~/.bashrc
~/.bash_profile
S3. ?IntelliJ IDEA創(chuàng)建java項(xiàng)目