Sometimes, we will download someSource codeBut the downloaded project file is eclipse or netbeans.
. What if there is no eclipse or netbeans at hand, or only one of them? Or, you are used to using netbeans or eclipse and don't want to change
IDE, so what should we do? Therefore, you will want netbeans or eclipse to support each other's project import.
In fact, it is not difficult to do it. It can be said that it is very simple. The following is my personal experience to explain how to import eclipse projects to netbeans. Here we take importing web projects as an example.
Although netbeans provides plug-ins that import eclipse projects to netbeans, I personally don't feel very useful. All of them are done by yourself.
1.First, make sure that your Eclipse project is in a non-Chinese directory (to reduce Unknown troubles), and then create a new "Web application with existing sources" in netbeans, such:
2. Click next and then click browse. A dialog box is displayed.
Find the location of your project and click open.
Note::Click SRC instead of the upper-level folder. As you can see, this is a myeclipse project file.
3. You can see the interface after opening the project.
After you click OK, the following message is displayed. You can select a server. Remember to use glassfish.
After selecting the server, click Next and you will see the following:
You can see the project structure in this section, and click Finish to import the project.
(In fact, the project structure of eclipse and netbeans is similar.)
The following is the web project structure under netbeans after the import is completed. netbeans can automatically help you import
Project Lib, which is very convenient.
After that, you can use eclipse and netbeans to develop your project at the same time. Some people may think that it is difficult to add an nbproject file (some Nb-specific files) to eclipse, but this is unavoidable. So there is something wrong with it! Don't be greedy! Haha!
Summary:
1. The key to importing eclipse projects into netbeans is the first step.
Do not click the SRC folder. Select the main folder of the project.
2. The process of importing a netbeans project in eclipse is similar to this.
3. there are a lot of problems that can be solved by yourself. As long as you are willing to experiment, you will find that many problems are caused by your willingness to experiment. Therefore, it is good for you to learn new things.