總網頁瀏覽量

2016年2月3日 星期三

在 Unbuntu 安裝 java 1.4

關網 http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase14-419411.html

 Java SE Development Kit 1.4.2_18 

Java SE Development Kit 1.4.2_18     (34.69 MB)      j2sdk-1_4_2_18-linux-i586.bin

之後安裝完後, 其實還會有問題.

因為是用 共用文件傳資料的, 所以路徑會比較不同

root@liu-VirtualBox:/media/sf_share_data/j2sdk1.4.2_18/bin# java
The program 'java' can be found in the following packages:
 * default-jre
 * gcj-4.8-jre-headless
 * openjdk-7-jre-headless
 * gcj-4.6-jre-headless
 * openjdk-6-jre-headless
Try: apt-get install <selected package>

依序執行指令, 就好了

root@liu-VirtualBox:/media/sf_share_data/j2sdk1.4.2_18/bin# sudo apt-get install defailt-jre
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package defailt-jre

root@liu-VirtualBox:/media/sf_share_data# sudo apt-get install default
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package default
root@liu-VirtualBox:/media/sf_share_data#

root@liu-VirtualBox:/media/sf_share_data# sudo apt-get install openjdk-7-jre

DONE

而刪除文件也要下載套件

remove data instance and process :
root@liu-VirtualBox:/media# redir test
The program 'redir' is currently not installed. You can install it by typing:
apt-get install redir
root@liu-VirtualBox:/media# sudo apt-get install redir
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  redir
0 upgraded, 1 newly installed, 0 to remove and 258 not upgraded.
Need to get 18.6 kB of archives.
After this operation, 71.7 kB of additional disk space will be used.
Get:1 http://tw.archive.ubuntu.com/ubuntu/ trusty/universe redir i386 2.2.1-11 [18.6 kB]
Fetched 18.6 kB in 0s (20.4 kB/s)
Selecting previously unselected package redir.
(Reading database ... 165089 files and directories currently installed.)
Preparing to unpack .../redir_2.2.1-11_i386.deb ...
Unpacking redir (2.2.1-11) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up redir (2.2.1-11) ...

沒有留言:

張貼留言