linux 卸载ava,linux下配置ava环境变量.doc
linux下配置ava環境變量
Linux下配置JAVA運行環境:
一:配置Linux和Windows共享文件夾
在windows系統下建立文件夾 “ltw”
點add按扭進行配置
安裝虛擬機工具
先下載linux.iso文件 一般虛擬機里面自帶的有,如果沒有就去網上下載 .在虛擬機里啟動linux系統。
啟動完成后,打下如下圖所示窗口
在Use ISO image選項中,選擇linux.iso文件。
確定后,系統自動打開如圖所示窗口
打開終端輸入路徑來到如下圖所示目錄
命令行輸入:./vmware-install.pl
一路回車,直到結束
完成后我們可以開始菜單- 系統工具- 顯示:來調下分辨率.
重啟后生效.
驗證我們的共享文件夾是否可用:
打開終端:輸入cd /mnt Ls
如果看到hgfs文件夾,說明我們配置成功,可進入此文件夾看下:
看到我在windows下建的ltw文件夾了。
二:安裝JDK
1.從域里下載JDK安裝文件,并COPY到共享文件夾ltw下:
在linux下進入共享文件夾,并找到jdk的安裝文件如下圖:
然后到linux根目錄下:mkdir ltw 建立一個你自己的文件夾,我在這建的是ltw
執行:如上圖示: cp jdk-6u11-linux-i586.bin /ltw/jdk6.bin 命令將jdk安裝文件COPY.到你自己建立的文件夾下,并改名為jdk6.bin
2.進入自己建的文件夾”ltw”,輸入./jdk6.bin 回車,安裝JDK.一路空格或回車
直到出現下圖所示:
輸入yes 回車
按任意鍵,繼續,直到出現命令行提示符。
進入安裝后的JDK文件夾,輸入./java 或./javac 命令可用,要想在任意目錄下,運行,就需要下面第3步.
3.配制JAVA環境變化
1.到/etc/profile.d/目錄下,如下圖所示
2.創建JAVA.sh文件 輸入vi 進入文件編輯工具
3.在vi里輸入以下內容設置環境變量
JAVA_HOME /ltw/jdk1.6.0_11 *****注意這里是你拷貝到 /usr/java/下的文件夾的名稱
CLASSPATH $JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
PATH $JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
如下圖:
按ESC,輸入vi java.sh
文件保存為java.sh
重新啟動
4.在控制臺輸入java 命令測試下.
well, with the effectiveness of services to defend the interests of the masses. Third, we should strive to do well. To achieve good practical results, the key is to know the law, to grasp the laws and using laws. Office of economic development, social progress, there are rules to follow. Only act according to the law, to overcome blindness and strengthening initiative, creative. Working in the Office, we should be good at analyzing the essence of things, to find regular thing, change from passive to active, to seek one. Investee 2. establishment of evaluation system. Evaluation system is essentially an incentive mechanism, the evaluation was objective and fair, reasonable, and can stimulate a person's energy, mobilizing people's enthusiasm or be misleading, dampened the enthusiasm of people. At present, the concept of people-oriented people, but to establish and perfect evaluation system is still lagging behind. Work in
總結
以上是生活随笔為你收集整理的linux 卸载ava,linux下配置ava环境变量.doc的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 三星万元旗舰用户闭眼下单OPPO Fin
- 下一篇: 美股周四:三大股指涨超1%,英特尔涨逾6