Share the same project with eclipse and netbeans

Source: Internet
Author: User
Tags netbeans

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.

Related Article

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.