Java Development Environment setting in Ubuntu7.10

Source: Internet
Author: User
1. install JDK under Ubuntu7.10 open the terminal of Ubuntu7.10, enter the following command sudoapt-getinstallsun-java6-jdk to set the current default java interpreter, enter sudoupdate-alternatives-configjava in the terminal to set the environment variable: add the following two lines to sudovi/etc/environment: CLASSPATH

1. JDK installation under Ubuntu7.10

Open the terminal Ubuntu7.10 and enter the following command

Sudo apt-get install sun-java6-jdk

Set the current default java interpreter and enter

Sudo update-alternatives-config java

Set environment variables:

Sudo vi/etc/environment

Add the following two lines:

CLASSPATH =/usr/lib/jvm/java-6-sun/lib

JAVA_HOME =/usr/lib/jvm/java-6-sun

2. Install eclipse

Download eclipse3.3 for linux and decompress it to the directory.

I put it in the/usr/local/share/eclipse directory, depending on my own situation.

Go to the eclipse directory cd/usr/local/share/

Set file eclipse execution right: chown-R root: janwer eclipse

Create a desktop connection sudo vi/usr/share/applications/eclipse. desktop

Add the following content

[Desktop Entry]/usr/local/share/eclipse/icon. xpm

Encoding = UTF-8

Name = Eclipse

Comment = Eclipse SDK

Exec =

Icon =

Terminal = false

Type = Application

Categories = Application; Development;

After saving, eclipse installation is completed. when installing some plug-ins, you must put path = xxx in linux and put it in links. However, you cannot use path = absolute path name on linux to make the installation take effect.

3. install Apache + SVN

Download httpd-2.2.6.tar.gz and decompress it to a directory.

There is nothing special about installing apache. It is basically the same as compiling apache normally. The only thing to note is that the parameters in the red lines below are required.

Janwer @ Janwer :~ /Public/httpd-2.2.6 $ sudo./configure-prefix =/usr/local/apache-enable-so-enable-dav = share-enable-dav-fs

Ps: other apache parameters are not mentioned here. It is easy to faint if it is too much! Here, the dav module is mainly used to load the mod_dav_svn, apr, and apr-util of svn. If there is no special installation, you do not need to specify it here! Because the default apr version is OK if/> = 1.2! If you need a special version of apr, study it again !!

Janwer @ Janwer :~ /Public/httpd-2.2.6 $ sudo make

Janwer @ Janwer :~ /Public/httpd-2.2.6 $ sudo make install

After installation, test whether the installation is normal.

Janwer @ Janwer :~ /Public/httpd-2.2.6 $ sudo/usr/local/apache/bin/apachectl start

It Works !!

@ Page {size: 21 cm 29.7; margin: 2 cm}

P {margin-bottom: 0.21}

->

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.