MyEclipse after compiling, there are no class files in the classes directory and no directories and configuration files

Source: Internet
Author: User

Summary of questions:
1. The project structure of the re-import is different from the original

SRC packages and so on are different from the original, open the project home directory, there is a. classpath file, with Notepad opened will find a line of <classpathentry kind= "src" path= "src"/> it means your source file location. To see if there is no such line, no need to make up, the following is the import path for some jar packages, such as:

These two lines should also be myeclipse automatically generated, Java running environment \j2ee1.4

<classpathentry kind= "Con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind= "Con" path= "Com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>

Imported JAR Package Location
<classpathentry exported= "True" Kind= "Lib" path= "Web/web-inf/lib/commonj-twm.jar"/>

2. Refresh the item does not compile automatically, delete the bytecode file in the Classes folder below Web-inf and no longer regenerate

This problem is encountered to check if there is a line

<classpathentry kind= "Output" path= "Web/web-inf/classes"/>

This is to specify the output of bytecode files to where, if not specified will not be the default for you to find a place to save.

3. The above two steps have been completed, but the project still can't run

This time you need to use the MyEclipse project cleanup function, there is a clean in project in the menu bar, it will force clear those configuration files, rebuild will be correct.

Turn from: http://aayy520.blog.163.com/blog/static/231822602011231575230/

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.