Installing JDK and configuring Python in Eclipse

Source: Internet
Author: User

To help work with Eclipse, before the installation of the configuration is a colleague helped, and today is free to tidy up the installation configuration steps

I. Installing the JDK
1. Download JDK, install JDK, install, configure JDK environment variable
1) My Computer right button-Properties-Advanced-click Environment variables

2) System Variables-NEW
Variable name: java_home; Variable value: c:\jdk1.8 (JDK installation path), click OK

3) Find the path in the system variable, edit the system variable, add%java_home%\bin;%java_home%\jre\bin after the variable value; Click OK

4) New variable variable name in system variable: CLASSPATH, Variable value:.; %java_home%\lib\dt.jar;%java_home%lib\tools.jar
5) Check that the configuration is correct
Shortcut key Win+r Open the Run window, enter cmd, enter the command java-version

Input Java
Do not appear not internal command indicates a successful configuration
Two. Eclipse
Download Eclipse, unzip, open without installing direct run
Three. SDK installation and Configuration
1. Download the Android SDK and install to any path after decompression
2. Configure the environment variable, create a new variable name in the system environment variable: android_home, Variable value: The installation path of the SDK
Find path in system variable, edit system variable, add variable value, variable value is absolute path of TOOSL in Android SDK (my machine is D:\anzhuang\Android-sdk\tools)-OK
Enter the CMD command window to check if the configuration was successful; Enter Android ADB and the following output indicates success

Add the tools and Platform-tools under Android_home to path and add the following configuration%android_home%\platform-tools;%android_home%\tools
Four. Installing the ADT Plugin
(1) Install ADT plug-in, two ways
Installation package Installation
Open Eclipse, select Help->install New Software on the menu bar, click Add,name to enter any character (such as ADT), location enter the directory where the ADT compression package is located-click ok-Tick Developer Tools->selectall->next, start the download

(Note: The network will check a lot of things, if it is imported to download a good installation package plug-in can be broken network, so installed faster)

After completion, next-next-agree-click Finish
Online installation

Enter URL: https://dl-ssl.google.com/android/eclipse/(If an error occurs, change HTTPS to HTTP) name: Android (can be customized here) Click OK to continue downloading the installation

The following icon appears indicating that the ADT installation was successful

(2) Configuring the Android SDK
Click menu window->preferences->android Right SDK location->sdk path

V. Uninstalling the SDK and its ADT plugins
Uninstalling the SDK method: Bring your own uninstall software or Control Panel-Program-Find the SDK Uninstall
Uninstall ADT Method: In Eclipse menu select Help > Install New software > in the Details panel, click "What is already installed?" In the Eclipse Installation Details dialog box, select "Android DDMS" and "Android development Tools", then click Uninstall > in the next window, Confirm the ADT you want to delete, then click Finish to delete it, and restart Eclipse.
Remove plugin Install/update address: 1.Eclipse->window > Preferences, left menu bar select Install/update > Available software Sites Select the ADT plugin to update the address and delete it.
VI. Python installation configuration
1. Download the Python installation package, double-click the installation package

Appear

Select the installation path, click Install, start the installation wait a while, install complete, click Close

2. Configure environment variables right-click My Computer Select Properties Select Advanced System Settings, tap Advanced click Environment variables, System variables-select path path and double-click to place the path you chose when you installed Python in the path path

3. Verify that the configuration is successful type python–v under the cmd command line to get Python version information, the installation is complete

vii. configuring Python in Eclipse

1. Install the Pydev plugin in two ways:

Online installation

Open Eclipse, find the Help menu bar, go to install New software ... Click Work with: Click Next to the input box Add...,name can be anything for example (PyDev), location is http://pydev.org/updates. Click OK.

Click OK, then finish, and wait for a moment to appear

When checked, click Next to install
After the Pydev is installed, you need to restart eclipse.
Offline installation
An offline installation is where you select the installation source, select "Archive", and then select the downloaded offline package, such as the installation of ADT, as was the case with the previous Pydev installation.
However, during the recent installation process, it was discovered that this would prompt the error "No software site found at jar:file:[offline package path]!/. wish to edit the location?.
The workaround is to extract the downloaded offline packages directly, get the plugins and features folders, and place them in the eclipse's Dropins directory. Restart the Eclipse,pydev plugin to install successfully.
2. Configuring the Pydev Plugin
After the Pydev is installed, you need to configure the interpreter. In the Eclipse menu bar, choose Window > Preferences > Pydev > Interpreters > Python interpreters, click New to add the location of the installed Python interpreter on your system , after a short period of processing, to obtain its libraries, buildins and so on; OK, finish.
3. Create a Pydev project
The Python development environment is already configured, and a new project is created below to test if it is ready to run.

Click File > New > Other > PyDev > select PyDev Project > Next. Take a project name, such as Hellopython,grammar version (the syntax revision number, select the appropriate version) as shown:

Click "Finish" to complete the project creation. Enter the Pydev view for Python development.
Hellpython > src directory, right-click > select New > PyDev package, create a Python pack, also named Hellopython here.
Right-click the project and select Run as > Python running or ctrl+f11. You can see the results of the project running in the console window below.

Installing JDK and configuring Python in Eclipse

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.