假設你下載回來的套件叫做 123.rpm.bin
進入終端機或在文字模式下,照下面打
for example~(注意空格)
第一步:[you@free 下載檔案存放的資料夾]#chmod 777 123.rpm.bin
第二步:[you@free 下載檔案存放的資料夾]#./ 123.rpm.bin
第三步就會跑出一堆版權聲明
.....
Do you agree to the above license terms?[yes or no]
yes<---輸入"yes"
.....
inflating: 123.rpm.bin
Done.
就ok啦~
chmod +x 123.rpm.bin 也可以,chmod 777 會把所有權限(讀寫執行)對所有人打開
Fedora預設會裝到/usr/java底下
如要設定JAVA_HOME環境變數,可以修改 /etc/profile
補個export JAVA_HOME=/usr/java/jdk...(看版本安裝的路徑)
再補一個export PATH=$JAVA_HOME/bin:$PATH
我執行完出現以下訊息
[root@Linux57 DocShare]# java Hello
libgcj-java-placeholder.sh
This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternativesMusical Note
system.
This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
再來才是程式的結果。
雖然程式是出來了,可是無論"javac"還是"java"都會出現一堆無法搞定的東西,有點煩~~~看有沒有人能解決囉^___^"
莫名奇妙的就解決了,可能就是安裝完要重新啟動吧
進入終端機或在文字模式下,照下面打
for example~(注意空格)
第一步:[you@free 下載檔案存放的資料夾]#chmod 777 123.rpm.bin
第二步:[you@free 下載檔案存放的資料夾]#./ 123.rpm.bin
第三步就會跑出一堆版權聲明
.....
Do you agree to the above license terms?[yes or no]
yes<---輸入"yes"
.....
inflating: 123.rpm.bin
Done.
就ok啦~
chmod +x 123.rpm.bin 也可以,chmod 777 會把所有權限(讀寫執行)對所有人打開
Fedora預設會裝到/usr/java底下
如要設定JAVA_HOME環境變數,可以修改 /etc/profile
補個export JAVA_HOME=/usr/java/jdk...(看版本安裝的路徑)
再補一個export PATH=$JAVA_HOME/bin:$PATH
我執行完出現以下訊息
[root@Linux57 DocShare]# java Hello
libgcj-java-placeholder.sh
This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternativesMusical Note
system.
This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
再來才是程式的結果。
雖然程式是出來了,可是無論"javac"還是"java"都會出現一堆無法搞定的東西,有點煩~~~看有沒有人能解決囉^___^"
莫名奇妙的就解決了,可能就是安裝完要重新啟動吧
Recommend to Front page
塔羅(2)


Comment Permissions: Allow commenting