Configuring the Monkeyrunner environment in Eclipse under Ubuntu

Source: Internet
Author: User

At this point the environment for this machine is:

The Ubuntu system is: 16.04;

JDK version: 1.8.0_77

The documents referenced are:

Https://my.oschina.net/yusi/blog/512399?p=1

Http://www.cnblogs.com/yuzr/p/4148477.html

Http://www.cnblogs.com/liutong3310/p/4019602.html

http://blog.csdn.net/jane1229/article/details/43655189

1. Jdk

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

According to your operating system to choose the appropriate JDK,

Environment variable Configuration

To modify the configuration file under the currently logged on user path (Home/alicia (my username)),

Open the. BASHRC and. Profile at the end of the add:

Export JAVA_HOME=/USR/LIB/JVM/JAVA-7-OPENJDK-AMD64

Export JRE_HOME=${JAVA_HOME}/JRE

Export Classpath=.:${java_home}/lib:${jre_home}/lib

Export Path=${java_home}/bin: $PATH

Save

2. Download the Integrated test environment (ADT bundle)

The ADT bundle contains Eclipse, ADT plug-ins, and SDK Tools, which are already integrated Ides that are ready to be developed by installing the JDK, and recommended for beginners to download ADT bundles. No need to toss out the development environment. Download path: http://www.androiddevtools.cn/

Example: Adt-bundle-linux-x86_64-20140702.zip

Unzip to get file: adt-bundle-linux-x86_64-20140702

3. Pydev Download and Configuration

(1) Download

Link: SourceForge Download

Jump to this page: http://sourceforge.net/projects/pydev/files/

Example: PyDev 3.6.0.zip

Extracted two folders: Features, Plugins,eclipse installation directory also has such two folders, respectively, they are copied to the Eclipse installation directory corresponding folder.

It should be noted here that the files inside the plugins can be extracted to the Dropins directory, if you find that the verification Pydev unsuccessful, you can try this method

  

(2) Open eclipse into/home/yanrong/opt/adt-bundle-linux-x86_64-20140702/eclipse, run eclipse program

(3) Enter eclipse--window--prerences---Pydev---interpreter---Python interpreters

(4) Click New to find the Usr/bin in the python2.7 (this is the system comes with, you can enter Python in the command line to view), and finally click OK

(5) Click on New to find the/home/yanrong/opt/adt-bundle-linux-x86_64-20140702/sdk/tools under the Monkeyrunner, to add, click OK

4. Pydev Configuring the Jython development environment

Do not rush to install Jython's interpreter at this time, because in my experience we will encounter the following error during installation: "Error:python stdlib not found or stdlib found without. py Files

(1) Find the jar package of the Jython parser and unzip it

Catalog: Sdk\tools\lib Jython-standalone-2.5.3.jar

The following are the Windows

   

(2) After decompression, copy the Lib file under the folder to the same level directory as the Jython parser jar package, i.e. under the Sdk\tools\lib directory

(3) Open Eclipse-window---references-pydev---interpreter---jython interpreters

(4) Click New, select the Jython jar package under Sdk/tools/lib, then click OK

5. Monkeyrunner Development Environment Configuration

So far we've configured Jython's development environment, and we can already create a Jython project. But so far we have not finished Monkeyrunner configuration, so now the Jython project is not very convenient to develop Monkeyrunner.

In fact, with the Monkeyrunner development environment is to add the package we need to Jython pythonpath inside, convenient for us to refer directly.
    • Step 1: Open window>>preferrences
    • Step 2: Locate the Pydev>>interpreters>>jython interpreter
    • Step 3: Click on the "New jar/zips" button on the right to start selecting the Jar package below the \tools\lib you need under the SDK below.

   

Click OK to complete the configuration of the Monkeyrunner development environment

Configuring the Monkeyrunner environment in Eclipse under 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.