Ubuntu8.04 Series Seven-Software Development articles welcome to reprint, reprinted please indicate the source: Jia Junyuan http://luckiss.blogcn.com

Source: Internet
Author: User
Linux is a paradise for developers

1. Install Java environment support
Sudo apt-Get install sun-java6-jre
If the space is rich, we recommend that you install a JDK:
Sudo apt-Get install sun-java6-jdk
Tip: During the installation process, you need to answer whether you agree to use the Protocol (the red-blue prompt page in the terminal). Press the tab key to OK, and press enter to install it normally.
Set the current default Java interpreter:
Sudo Update-alternatives -- config Java
The following figure is displayed after execution:
There are 2 alternatives which provide 'java '.

Selection alternative
-----------------------------------------------
1/usr/bin/gij-wrapper-4.1
* + 2/usr/lib/JVM/Java-6-sun/JRE/bin/Java

Press enter to keep the default

  • , Or type selection Number:

  • Enter the number before the row containing "Sun. As shown above, enter 2 and press enter to confirm.

    Configure Java environment variables:
    Sudo gedit/etc/environment
    Add the following two lines:
    Classpath =.:/usr/lib/JVM/Java-6-sun/lib
    Java_home =/usr/lib/JVM/Java-6-sun

    Sudo gedit/etc/JVM
    Convert
    /Usr/lib/JVM/Java-6-sun
    Enter this line at the top of the configuration block.
    Install the browser's Java Plugin (optional ):
    Sudo apt-Get install sun-java6-plugin

    Java Chinese support (or garbled solutions): Java programs are cross-platform, but Chinese support needs to be addressed.
    The method is very simple, that is, place a Chinese font in the Java installation directory.
    CD/usr/lib/JVM/Java-6-sun/JRE/lib/Fonts
    Sudo mkdir fallback
    CD fallback
    Sudo ln-S ~ /. Fonts/firefly. TTF (I selected the latest wenquanyi Kuafu font,/usr/share/fonts/wenquanyi/wqy-zenhei/wqy-zenhei.ttf)
    Sudo mkfontdir
    Sudo mkfontscale

    2. Build the C ++ programming environment under Ubuntu:
    Compiler: sudo apt-Get install build-essential GCC make Autoconf automake libtool GDB g ++
    Editor:
    Sudo apt-Get install Emacs
    Sudo apt-Get install Vim
    The default syntax coloring function of VIM is disabled. You can edit the/etc/Vim/vimrc file.
    Remove the symbols before syntax on and save them. You can start the syntax coloring function of vim.

    Build a gnome development environment:
    Sudo apt-Get install gnome-devel
    Eclipse is also a good choice: it is recommended to download eclipse for CPP directly at the following address:
    Http://www.eclipse.org/downloads/

    Solution to JVM terminated. Exit code = 13 error when starting Eclipse:
    First, use the command to select the correct Java version:
    Sudo Update-alternatives -- config Java
    Then ~ /Delete the. Metadata directory in the workspace directory.

    Download the C/C ++ version
    Select the fastest image: [Korea, Republic of] Daum Communications Corp. (HTTP)

    3. Build a KDE Development Environment
    Sudo apt-Get install kdevelop kdesdk
    This ide has many components and is mainly used for Qt programming. There is a kdevelop assistant tool which can be used as a tool similar to msdn to use javas_^.

    4. Install codeblocks
    Download from http://www.codeblocks.org,
    You can also add the Deb http://lgp203.free.fr/ubuntu/ hard universe to the source, update the source and then:
    Sudo apt-Get install codeblocks
    This software is also a good C ++ ide. If you have used Dev on Windows, you may have heard of this software.

    5. Install the library freeglut3-dev required for OpenGL development,
    It will install all dependent packages:
    Sudo apt-Get install freeglut3-dev

    6. Install Latex:
    Sudo apt-Get install texlive
    Install the IDE interface:
    Sudo apt-Get install texmaker
    If you are professional enough, install the full version, which consumes 425 m/884 m space:
    Sudo apt-Get install texlive-full

    7. UML modeling software
    Sudo apt-Get install umbrello

    8. Version Management Software
    Sudo apt-get CVs subversion Git-core libwnck-Dev

    9. Flowchart rendering software
    Sudo apt-Get install Dia

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.