iT邦幫忙

2019 iT 邦幫忙鐵人賽

0
自我挑戰組

Codeing無涯:從入坑Subversion到離岸Git;一段勇不回頭的旅程系列 第 31

JAVA-環境設置

下載JDK(Java Development Kit)
https://ithelp.ithome.com.tw/upload/images/20190123/20110334RhmiO4NZeu.png
點擊 "Accept License Agreement" 方能開始下載,選擇下方適合自己系統的JDK。

設定環境變數:使用CMD(COMMAND);一次性設定
查詢目前的環境變數:echo %path%
https://ithelp.ithome.com.tw/upload/images/20190123/20110334WkXAxpqThS.png

環境變數新增JDK路徑:path=[JDK安裝路徑];%path%
https://ithelp.ithome.com.tw/upload/images/20190123/201103348JOdXZazlR.png

設定完成後環境變數便會包含JDK的路徑:
https://ithelp.ithome.com.tw/upload/images/20190123/20110334EaoADvaIV4.png

這種設定方式在重新開機後必須再重新操作一次。

設定環境變數:使用系統;永久性設定
https://ithelp.ithome.com.tw/upload/images/20190123/20110334JJfIIkWQkk.png
https://ithelp.ithome.com.tw/upload/images/20190123/20110334EFreFa3jl8.png

完成後測試是否成功:
在CMD輸入java與javac
https://ithelp.ithome.com.tw/upload/images/20190123/20110334CvufkPfVKd.png
https://ithelp.ithome.com.tw/upload/images/20190123/20110334G1eWG0Vg3s.png


上一篇
自己挖的坑自己跳
下一篇
萬年Hello World!!!
系列文
Codeing無涯:從入坑Subversion到離岸Git;一段勇不回頭的旅程33
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 則留言

0
Luke
iT邦研究生 5 級 ‧ 2019-01-23 17:57:49

JAVA_HOME = C:\Program Files\Java\jdk1.8.0_201

再去 PATH 內加
%JAVA_HOME%\bin
/images/emoticon/emoticon10.gif

Joe iT邦新手 3 級 ‧ 2019-01-23 18:01:47 檢舉

/images/emoticon/emoticon41.gif

我要留言

立即登入留言