] Fix new Javaweb project in MyEclipse, can't use web App libraries problem

Source: Internet
Author: User

] fix new Javaweb project in MyEclipse, can't use web App libraries problemTags: myeclipsejavawebweb App Libraries2013-10-16 10:54 5032 People read comments (0) favorite reports Classification:Development Environment

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

In the new Java Web Project in MyEclipse, the jar package in Lib does not automatically load the project and does not use the web App Libraries like Eclipse.

Even if you add a Web App libraries This Libraries,jar package is added as a method.

Workaround:

In the. project file, modify the <natures> Overwrite the original content with the following content

<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

Then, in the. Settings folder, add the Org.eclipse.wst.common.component file, content:

<?xml version= "1.0" encoding= "UTF-8"?>
<project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "project name" >
<wb-resource deploy-path= "/" source-path= "/webroot"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
<property name= "Context-root" value= "/project name"/>
<property name= "Java-output-path" value= "/project name/webroot/web-inf/classes"/>
</wb-module>
</project-modules>

] Fix new Javaweb project in MyEclipse, can't use web App libraries problem

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.