Use Eclipse to build Java, Python development environment on Ubuntu

Source: Internet
Author: User
Tags save file

The previous article on how to build a Java, Python development environment on WINDWOS with Eclipse, this talk will focus on how to build on Ubuntu, I use the virtual machine installed Ubuntu system, the system version is: 14.04 LTS

Building a Java development environment with Eclipse + JDK

1.JDK official: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

I downloaded: jdk-8u77-linux-x64.tar.gz

2. Configuring the Java Deployment directory with a terminal

New Catalog:/USR/LIB/JVM

sudo mkdir /USR/LIB/JVM

3. Copy the download installation package from 1 to the deployment directory

Go to the installation package directory and execute

sudo CP jdk-8u77-linux-x64. tar. GZ/USR/LIB/JVM

4. Unzip the installation package to the current deployment directory

Enter the/USR/LIB/JVM directory and execute

sudo tar xvf jdk-8u77-linux-x64. tar. gz

5. Change the directory name after decompression, easy to set up

sudo MV Jdk1. 8. 0_77 JDK1. 8

6. Configure Java Environment variables

Open ~./BASHRC

sudo gedit ~./BASHRC

On the last side add:

Export java_home=/usr/lib/jvm/jdk1.8   path= $JAVA _home/bin: $JAVA _home/jre/bin:$Path  export CLASSPATH=.: $JAVA _home/lib/tools.jar: $JAVA _home/lib/dt.jar

Save file, close, enter on terminal

SOURCE ~/.BASHRC

make the configuration effective;

At this point, the Java environment variable configuration is completed, of course, in my actual combat process encountered a variety of problems, will be a way;

7.java Installation Verification

Java  -version

If the correct version number is displayed, the configuration is successful;

8. Install Eclipse

Use Ubuntu firefox browser to download the installation package for Ubuntu system from official website: http://www.eclipse.org/downloads/

Decompression after installation is complete;

9. Configuring the Java Development environment

Then see the installed JREs inside the configuration of the Java operating environment is correct, if it is correct, basic means that the development environment configuration is successful, can be common Java development.

Ii. Build a python development environment with Eclipse + Pydev + python

In fact, Ubuntu naturally comes with Python, and comes with python2.7.6 and 3.4, good, this saves a lot of effort.

How do I install the system if it does not come with it? Download source package, self-extracting, compiling, installation, configuration, come together ~

Download python3.5.1,: www.python.org

Unzip the file:

tar -xvzf python-3.5. 1. tgz

Enter the extracted Python-3.5.1 directory, respectively, according to the sequence execution:

./configure
Make
sudo  Make Install

Execution completion If there is no error, the installation is successful, of course everything is not so smooth, the installation process of the problem will be in the next article focus.

The rest of the work is to load the Pydev plug-in and configure Python in Eclipse, and this work is basically consistent with the Windows environment.

At this point, the overall environment configuration process is over, then the third blog post will be a summary of the problems arising in this process.

Use Eclipse to build Java, Python development environment on Ubuntu

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.