Eclipse Import External Project Issues summary

Source: Internet
Author: User
Tags apache tomcat

?? During the project development process, when you import a shared project that was downloaded from OKSVN, several items appear in the different IDE import and export issues, for example, the following notes for forgetting to do:

1 class path problems

The IDE that most developers use in Java development is myeclipse and Eclipse, and the easiest problem to import from MyEclipse to eclipse is the classpath problem. Since MyEclipse basically integrates the entire class library, it is similar to the class library we built ourselves under eclipse. All import-related class libraries are references. So the first thing to do when importing items from MyEclipse to eclipse is the " project", "right", "Build Path", "Configure Build Path", "Libraries", Change the class library path

2 Com.genuitec.runtime.generic.jee60 is not defined.

That 's the problem I just met tonight. Open the problem view. The demo sample is as follows:

Google, Baidu have no answer. It was later solved by a similar problem (similar to the question: Target runtime Apache Tomcat 6.0 is not defined)

The workaround is: in the. Settings folder under the project folder, open the Org.eclipse.wst.common.project.facet.core.xml file with the following contents:

1 <?XML version= "1.0" encoding= "UTF-8"?

>2 < faceted-project> 3 < Runtime name="Com.genuitec.runtime.generic.jee60"/> 4 < fixed facet="Wst.jsdt.web"/> 5 < fixed facet="Jst.web"/> 6 < fixed facet="java"/> 7 < installed facet="java" version="1.6" /> 8 < installed facet= "jst.web" version=" 3.0 "/> 9 < installed facet="Jst.web.jstl" version= "1.2.1" /> Ten < installed facet="Wst.jsdt.web" version= "1.0" /> One </ faceted-project>

View Code

Change <runtime name= "?" Content is the service name under Preference->server-runtime environment, such as the following:

1 <? XML version= "1.0" encoding= "UTF-8"?> 2 < faceted-project> 3   <  Runtime  name="Apache Tomcat v7.0"/> 4   <  fixed  facet="Wst.jsdt.web"/> 5   <  fixed  facet="Jst.web"/> 6   <  fixed  facet="java"/> 7   <  installed  facet="java"   version="1.6"  /> 8   <  installed  facet= "jst.web"   version=" 3.0 "/> 9   <  installed  facet="Jst.web.jstl"   version= "1.2.1"  /> Ten   <  installed  facet="Wst.jsdt.web"   version= "1.0"  />  One </ faceted-project> 

Eclipse Import External Project Issues summary

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.