Under MyEclipse, deploy the jar packages to other folders instead of the Web-inf/lib folder, so that you can deploy them to the server on the server, To configure the. Classpath under the project, add the path to the associated jar under this file.
if (I put the jar under the Lib file under the root directory, note that it is not a web-inf/lib folder):
<classpathentry kind= "Lib" path= "Lib/acegi-security-1.0.6.jar"/>
<classpathentry kind= "Lib" path= "Lib/activation-1.1.jar"/>
<classpathentry kind= "Lib" path= "Lib/antlr-2.7.6.jar"/>
<classpathentry kind= "Lib" path= "Lib/aopalliance-1.0.jar"/>
<classpathentry kind= "Lib" path= "Lib/asm-1.5.3.jar"/>
.......
Next, let's talk about how to automatically map the value of the Path property of the Classpathentry node under MyEclipse
1 For example, I want to put all the project's jar packages under the project's Lib package, right-click the project to create a new package called "Lib", as shown in
2 Copy a Classes14.jar to the Lib directory
3. You can automatically import jar packages into your project by following the diagram
Viewing the. classpath file under the project, you can see
<classpathentry kind= "Lib" path= "Lib/classes14.jar"/>
The following quotes the Netizen's passage: http://hawktiger2008.javaeye.com/blog/460751
Currently, in the process of project development, when the required projects are synchronized from CVS, but not in their own running environment, the reason is that different operating environments
The configuration of the. Classpath is different and needs to be adjusted accordingly. First, we parse the. classpath file,. classpath is an XML-formatted file, where the most commonly used tag is:<classpathentry/>. Its common properties are: kind,path,exported.
1. <classpathentry kind= "src" path= "src"/> Specifies that the item represents the source file and indicates the path to the source file
2. <classpathentry kind= "Lib" path= "Webroot/web-inf/lib/antlr.jar"/> Specifies that the item represents a library file or directory, and indicates the appropriate storage path
3. <classpathentry kind= "Output" path= "webroot/web-inf/classes"/> Specifies that the entry represents the compilation path, indicating the storage path after *.java file is compiled into a *.class file. The entry is the default store path, which means that only one kind= "output" can exist in the. classpath file.
4. <classpathentry exported= "true" kind= "con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/> and
<classpathentry exported= "true" kind= "con" path= "Com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/> The items that are required for each project.