Quick Summary to Install Java 1.5 SDK on Debian Testing 提交人:kmlhk79 時間:三, 02/16/2005 - 18:47 Debian Packaging | DebianHK | En

本文是关于Debian HK系统的Java安装文章,旨在帮助Debian用户在Debian Testing中快速安装Java SDK 1.5。文中详细介绍了安装步骤,包括确保APT源包含contrib部分、创建目录、下载文件、使用命令安装等,还提及了浏览器插件设置及安装验证方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Debian Packaging | DebianHK | English | Hong Kong

This is my second Java installation artical for Debian HK .

To help other Debain user to install Java SDK 1.5. in Debian Testing quickly, Here is my summary steps to install Java SDK 1.5. in Debain testing :

1. Make sure that the contrib section is included in your APT sources ( /etc/apt/sources.list ).

Example: (your may differ a bit, but make sure the contrib part is there)

deb http://ftp.hk.debian.org/debian/ testing main contrib non-free

2. Create a directory ( for example : tempfile) to hold the java files,

3. Download Java SDK or run time 1.5 from Sun Website to that directory.

4. Change to that directory

5. apt-get install java-package

6. fakeroot make-jpkg jre-1_5_0_01-linux-i586.bin, then asnwer the questions.

a sun-j2re1.5_1.5.0+update01_i386.deb package will be built in that directory.

7. Su as root, then run : dpkg -i sun-j2re1.5_1.5.0+update01_i386.deb

8. Verify installation

Execute

java -version

The output should look something like this if everything is well:
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

9. Browser Plugin

With Mozilla Firefox from testing/unstable you shouldn't need to do anything as the installation procedure of the Java should have created the symlink properly.

Check the link for Firefox:

ln -s /usr/lib/j2sdk1.5-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so

10 Job Done.

Hope to this quick summary may help those Debian users who want to run Java in Debian.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值