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

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您提供的这一行文本是Debian及其衍生版(如Ubuntu)系统中`sources.list`文件中的一种配置条目。该条目用于指定软件源(repository),告诉系统软件包管理器从哪里下载软件包。这里解释一下您提供的这条命令: - `deb`:这是一个声明,告诉系统这是二进制软件包的源(即预编译好的软件包,而非源代码包)。 - `http://deb.debian.org/debian/`:这是Debian软件包存储库的URL地址。 - `stable`:指定您想要从Debian的哪个版本下载软件包,`stable`代表当前稳定版本。 - `main`:指明了软件源中包含的软件包部分,Debian将软件包分为多个部分,`main`是最基本的部分,包含了自由软件。 当您在`sources.list`中添加或修改这样的行,并运行软件包管理器(如`apt-get`或`apt`)时,可能会遇到错误。出现错误可能是由于多种原因造成的,比如网络问题、软件包库的变动、配置文件语法错误等。错误消息通常会提供失败的原因,如: - 网络连接问题:网络不通导致无法访问指定的URL。 - 仓库签名无法验证:如果使用HTTPS连接,可能会要求验证仓库的签名,如果签名过期或无效,会导致问题。 - 配置文件语法错误:`sources.list`中的语法错误也会导致失败。 对于解决这类问题的建议包括: 1. 检查您的网络连接,确保可以正常访问`deb.debian.org`。 2. 如果是HTTPS源,确保您的系统可以验证仓库签名。 3. 使用`apt-get update`命令时,如果遇到错误,查看详细的错误信息,它会指导您找出问题所在。 4. 如果配置文件中的URL或配置有误,请检查`sources.list`文件的语法是否正确。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值