] 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