免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1131 | 回复: 0
打印 上一主题 下一主题

Installing Sun Java on Debian [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-21 14:13 |只看该作者 |倒序浏览

Installing Sun Java on Debian

  • Note: these instructions give detailed steps for installing Sun Java following a recent installation of Debian. Before you install any new operating systems please make sure you have a backup of data that you want to save. Note: Java and Debian developers may find
    Installing Sun Java Development Tools on Debian
    useful

  • While OS Installation instructions are beyond the scope of this document here are some recommendations to get you started:

    • Choose the etch release of Debian. This is the forthcoming new release of Debian as running testing or unstable is not recommended for new users.
    • These instructions will show you how to run a
      mixed system
      of etch with the sun-java5 package from unstable.
    • The best way to install Debian etch is with the new
      Debian Installer
      . For CD based installs burn a CD with the the netinst CD image (note: many other installation methods are available such as netboot and usb stick). Choose the beta2 version.
    • The new
      Debian GNU/Linux Installation Guide
      and
      Debian Installer Wiki and FAQ
      provide detailed installation instructions.

  • There are several different tools for installing software on Debian -- including graphical installers. For the purpose of this example the simple command line tools will be used. For the following steps please open a command window by selecting Applications | Accessories | Terminal.
  • The first step is to configure the Advanced Packaging Tool (
    APT
    ) by setting up the files
    /etc/apt/apt.conf
    and
    /etc/apt/sources.list
    as shown here (note: there are likely Debian
    mirrors which are closer to you
    ). Once APT is configured execute apt-get update to inform the system which versions of software are available at the mirror you have chosen:

  • Now you are ready to install the Sun JavaTM Runtime Environment (JRE) by executing
    apt-get -t unstable install sun-java5-jre sun-java5-plugin

  • You will be prompted to accept the
    DLJ
    :

  • Choose "Yes" to agree:

  • If you have other Alternate Technologies (e.g. gcj) installed on your system you may need to choose the Sun JRE as the default with:
    update-java-alternatives --set java-1.5.0-sun
  • Verify that Sun Java is available on your system (note: tcsh users may need to run rehash first) by executing java -version (if you use JAVA_HOME for running Java programs you can now set JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun )

  • Start (or restart) your web browser and
    verify that the plugin has been installed
    by typing in the special URL about:plugins

  • Now you can try running
    an applet
    :

  • Congratulations -- you now have Sun Java on Debian! If you have any questions about your installation please post them to the
    jdk-distros forum
    .

[/url]


本文来自ChinaUnix博客,如果查看原文请点:[url]http://blog.chinaunix.net/u2/62117/showart_1657072.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP