How to import amoeba source code to eclipse

Source: Internet
Author: User

After finding relevant materials on the Internet for a long time, I had nothing to gain. I found a group and added it to the group. Once there was a bird, I won't speak out. The problem may be very simple, so no one has ever encountered it, but I have encountered it and I have finally solved it for half a day. Let's make a record here!

1. amoeba source code: http://amoeba.googlecode.com/svn/trunk;

2. amoeba download tool: SVN;

3. download Method: Create a folder, right-click the folder and select the svn checkout option. On the displayed page, enter the Source Code address to download the folder, this is the usage of SVN. For details, refer to it separately;

4. the directory structure of amoeba is as follows:

The above is the directory structure of the source code we downloaded. Note that the amoeba folder contains many dependent packages required by the project. Therefore, do not import only one directory in the directory structure to eclipse, instead, these directories are imported as a whole project.

5. Create an empty Java project in eclipse;

Copy all the folders and files in to the SRC folder of the project;

6. Modify the. classpath file of this project as follows:

<? XML version = "1.0" encoding = "UTF-8"?> <Classpath> <classpathentry kind = "con" Path = "org. eclipse. jdt. launching. jre_container/org. eclipse. jdt. internal. debug. UI. launcher. standardvmtype/JavaSE-1.6 "/> <classpathentry kind =" output "Path =" bin "/> </classpath>

Delete row 3;

7. Now, right-click the build. xml file and you will be able to execute it normally. Eclipse imported successfully.

My import results are as follows:

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.