在 Ubuntu 上安装 NetBeans 6.8

小编辑 发布于 2010/03/29 23:33
阅读 1K+
收藏 0
  1. Setup the Source Repository
    • deb http://za.archive.ubuntu.com/ubuntu/ intrepid universe
    • deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid universe
    • deb http://za.archive.ubuntu.com/ubuntu/ intrepid-updates universe
    • deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid-updates universe
    • deb http://za.archive.ubuntu.com/ubuntu/ intrepid multiverse
    • deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid multiverse
    • deb http://za.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
    • deb-src http://za.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
  2. To install NetBeans via the Ubuntu Package Manager, ensure that the correct repository is listed in the source listing file. NetBeans is found inf the universe repository and Java is found in the multiverse repository.

    Code:

      sudo gedit /etc/apt/sources.list

    Ensure that the following sources are added to the configuration file:

    After the configuration file is updated, the package repository needs to updated with the following command:

    Code:

      sudo apt-get update
  3. Install Required Software
  4. To install Java version 6, the following command needs to be executed:

    Code:

      sudo apt-get install sun-java6-jdk sun-java6-plugin
  5. Install Netbeans IDE
  6. To install NetBeans, the following command needs to be executed. The package manager does not necessarily install the latest version of NetBeans. The package manager will install the latest NetBeans that is supported by Ubuntu.

    Code:

    sudo apt-get install netbeans

    Source : http://www.javadesign.info/SystemsHardware/OS/Ubuntu/install-netbeans-on-ubuntu

      sudo apt-get install netbeans
加载中
0
幽灵
幽灵

我喜欢netbeans 希望他继续发展下去。

0
帆船
帆船

netbeans的中文字体是个大问题,极难配置。我安装了netbeans 6.8后头痛数日之久才解决了字体问题。Ubuntu 10.04默认带OpenJDK——但OpenJDK和JavaJDK对中文字体的支持在Ubuntu下并不一致。

~/.profile这个文件末尾加上这个环境变量(注销生效),

export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'

结果发现:

使用OpenJDK来运行swing程序时中文字体正常,而使用JavaJDK时中文会虚化到令人受不了的程度;

若是去掉这个环境变量,使用OpenJDK时中文字体会变窄且变花,而使用JavaJDK则一切正常。

——我实在无法想像如何让swing程序的用户喜欢上配置字体这么高难度的工作。

返回顶部
顶部