The Eclipse integrated development Environment builds Java, Python

Source: Internet
Author: User

Here is an example of Eclipse, which illustrates the building of the Java Integrated development environment.

  • The first step is to download the installation JDK and configure the environment variables, which is not repeated here. It should be mentioned that JDK, Eclipse is the same as Windows 32-bit or Windows 64-bit, the choice is 64 bits;
  • The second step is to download eclipse. Go to the Eclipse download page http://www.eclipse.org/downloads/ Select the appropriate version, here is the Eclipse IDE for Java EE developers, For the Windows 64-bit version, download the compression pack Eclipse-jee-luna-sr1-win32-x86_64.zip as prompted.
  • Step three, install Eclipse. Unzip the downloaded compressed package directly to the appropriate directory, and unzip it to C:\Program Files\eclipse\. Now click on Eclipse.exe in the run directory, will prompt No Java virtual machine is found after searching the following locations: ..., Depending on the prompt you need to configure the environment variable, add the path of Javaw.exe in Path, here is: C:\Program Files\java\jre1.8.0_25\bin. Run Eclipse.exe again, if the JDK, Eclipse is not the same as 32-bit or 64-bit, will also prompt Failed to load the JNI shared library .... Complete the installation of Eclipse here.
  • Fourth step, hello in Eclipse, world! The Welcome\tutorials page in Eclipse will guide you through how to create a Hello world application. There's no repetition here.


In addition, the offline installation of plug-ins in Eclipse is also to be saidPlugins for Python development: PyDev

    • The first step is to download and install Python. To the Python download page https://www.python.org/downloads/ Select 2.x or 3.x version download. The choice here is python-2.7.8. Run the downloaded installation package, here is Python-2.7.8.amd64.msi. Configure the environment variable later, add the path of Python.exe in path, here is C:\Python27. To verify the installation at the command line:
Pythonpython 2.7.8 (Default, June, 16:08:48) [MSC v.1500-bit (AMD64)] on Win32type "help", "copyright", "credits "or" license "for more information.>>>


here, you can also complete the compilation and operation of the Python program using the command line (edited//print ' Hello, world! ' , saved as helloworld.py, placed in the C:\Pycode directory):
>>>print ' Hello, world! ' Hello, World!>>>exit () CD C:\Pycodepython Helloworld.pyhello, world!


  • The second step is to download the Pydev plugin. To pydev download page http://sourceforge.net/projects/pydev/files/ Download the plugin compression package, here is Pydev 3.9.0.zip.
  • The third step is to install the Pydev plugin. Place the downloaded compressed package in the Eclipse directory, open Eclipse, select Help > Install New software ..., click add,name: "PyDev", click Archives ... Select the compressed package path and click OK. Will prompt No software site found at Jar.... Workaround: The features and plugins folders extracted from the compressed package are placed under the Eclipse\dropins root directory, where http://www.mincoder.com/article/3547.shtmlis referenced.
  • Fourth step, configure the Pydev plugin. After you restart Eclipse, select Window > Preferences > PyDev > Interpreters > Python interpreters, click New...,interpreter Name: " Python, click Browse ..., add the path to the Python interpreter, and after installing Python-2.7.8, get the interpreter: CPython, so select the path to Python.exe.
  • Fifth step, examples of Python programs in Eclipse.

      • Select Window > Open perspective > PyDev.
      • Select File > New > PyDev project,project name:helloworld, radio create ' src ' folder and add it to the PYTHONPATH, click Finish.
      • Right click on the left HelloWorld under src > New > Pydev module,name:helloworld, click Finish, select <empty> in the popup template window, click OK
      • Edit the relevant code as above.
      • You can see the results in the console window by selecting Run as Python run.

The Eclipse integrated development Environment builds Java, Python

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.