How to Migrate java projects organized by ant in linux to the eclipse environment in windows

Source: Internet
Author: User
How to migrate a java project organized by ant in linux to the eclipse environment in windows-Linux general technology-Linux programming and kernel information. See the following for details. These things have no technical knowledge. But IDE has the advantages of IDE, so you can import it. The configuration has encountered some problems. The solution is as follows:

1. Install subclipse
Help-> software update-> find and install-> new remote site, add "http://subclipse.tigris.org/update"-> select the desired installation.

2. If it is an ant build. xml project, you can drag ant directly without creating a java run dialog.

3. The system prompts "unable to find a javac compiler" and "com. sun. tools. javac. Main" When ant uses javac for compilation"
Method 1: Copy tools. jar to eclipse \ plugins \ org. apache. ant_xxxxxx \ lib.
Method 2: Set the ant runtime parameter in preference. For details, see

(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // practicalembeddedjava.com/tools/EclipseAntJavacToolsJar.gif'); ">

4. Chinese garbled characters in source code editing
Because the project is created in linux, the Chinese characters are UTF-8 encoded, and eclipse uses the default system code gb18030, It is garbled. Solution project-> property-> resource-> text file encoding is set to utf8

5. console output garbled Characters During run In ant
During source code compilation, encoding should be explicitly specified as utf8, for example

6. Problems with the inability to use javadoc in ant
A solution reported to eclipse.org is to add the directory location of the javadoc executable (e.g. /Bin) to your PATH environment variable. In addition, you must configure the encoding parameter in javadoc.

7. run of debug ant
No SIMPLE METHOD

8. jre configuration of eclipse
Currently, the jre setting of eclipse is very strange. The default setting is the jre_xxx directory. We recommend that you change it to the jdk_xxx directory.

9. Advice on importing a project
You must use the project Configuration Wizard to Import the folder directly, which may cause a lot of trouble.

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.