Today, I asked my colleagues to import the WED project of myeclipse to eclipse. He didn't even check it for a long time to tell me ..... I asked him to go online and check him. He said no. I checked the instructions on the internet very little)
Today I am posting a post here to teach you how to be stupid.
If you saw this, Nb wouldn't spam me, if there is anything better to do with anyone, please follow the post and tell me that I want to find a convenient method. This method is a bit difficult! If it is not easy to use according to what I said, you can send your project to my mailbox and I will export it to you!
Also, if eclipse cannot develop web projects, you should learn how to use eclipse again! Don't get it !!!
To put it bluntly, first of all, a project of myeclipse on hand contains these files
Contains. myeclipse, WEB-INF and other N folders; first of all, there are several folders in the WEB-INF are: classes, Lib, SRC, Web. xml. If you areProgramIf you have used ecplise for projects, you should know that web. XML is the configuration file, SRC is the Java source file, and Lib is the. jar file of the corresponding database provided by JDK.
Next, create a web project in your eclipse: file-New-others-select Dynamic Web project under the web-and configure your project name and your tomcat-finish.
After the project is created, you will see that your project contains these folders (2), and then open the folder where the project you created is located,Below are the highlightsCopy the SRC folder in the WEB-INF under your myeclipse project to the SRC folder under your new Eclipse project. the XML file and the Lib folder are copied to your webcontent \ WEB-INF folder,The following should be clear:In the myeclipse project. myeclipse, WEB-INF ,. classpath ,. cvsignore ,. mymetadata ,. myumldata ,. project ,. after reading all the folders and non-configuration files I mentioned, copy them to the webcontent folder. Then you go back to eclipse and refresh the newly created project. If you don't click it, you can close eclipse and open it again. At this time, the myeclipse project will be imported into eclipse, however, another problem that needs to be solved is that some people may not be able to find Tomcat during project creation, which may result in the inability to inherit the httpservlet interface. What should I do:
On Libraries under SRC, right-click-build path-configure build path, select Add library, Select Server Runtime-next, and display your Tomcat server, select and then click OK. Of course, if you don't even configure tomcat, you still need to look for other tutorials. I won't talk about it, so I can open a tutorial ....
I hope this method can help most people solve the problem. Some write programs get the file name strange. You need to carefully identify it and put all the Java source files in the SRC folder, all the other items are placed under webcontent. If your project is still not easy to handle, send your project to the Forum and I will sort it out and send it to you.