Let Eclipse and NetBeans share the same project

Source: Internet
Author: User
Tags netbeans

Sometimes, we download some source code to learn the research, but the downloaded project files are either Eclipse or NetBeans. What if there is no eclipse on hand or no NetBeans, or only one of them? Or, do you get used to NetBeans or eclipse and don't want to change the IDE? So you want NetBeans or eclipse to support each other's engineering imports.

In fact, to do it is not difficult, it can be said very simple, the following on my personal history is to explain how to import the Eclipse project into NetBeans, here to import Web projects as an example.

Although NetBeans provides a plugin to import eclipse projects into NetBeans, I personally feel that it is not very useful. All on their own hands.

1. First make sure your Eclipse project is in a non-Chinese directory (to reduce the hassle of the unknown) and then create a new "Web Application with Existing Sources" in NetBeans such as:

2. Then click Next, and then click Browse to bring up a dialog box

Find the location of your project and click Open.

Note: Do not click SRC, directly click on the parent folder on it. As you can see, this is a myeclipse project file.

3. After opening the project, you can see the interface.

Then click on Next (No button to cut down, hehe!) In fact, follow the wizard prompted to go right)

You will see the following interface:

Click OK after the following will appear, let you select the server, remember to use GlassFish oh.

After selecting the server, click Next and you will see the following:

In this you can see the structure of the project, click Finish to complete the project import work.

(In fact, the project structure of Eclipse and NetBeans is similar)

Below is the Web project structure under NetBeans after import, and NetBeans can automatically help you import

Project Lib, very convenient.

After that, you can develop your project with Eclipse and NetBeans at the same time. Some people may find it hard to see a nbproject file (and some NB-specific files) on eclipse, but this is unavoidable. What is so-called have to lose! Do not be too greedy to behave! Oh!

Summarize:

Whether the project to import Eclipse in 1.NetBeans is successful key in the first step, when you select the Eclipse project

Never click the src folder. You want to select the home folder for the project.

The process of importing NetBeans in 2.Eclipse is similar to that, and it's not much to say.

3. There are a lot of problems in fact that they can be solved, as long as willing to try to experiment, you will find that there are many problems are their own refusal to do the experiment caused. So it's good for you to learn new things by doing more hands-on.

Let Eclipse and NetBeans share the same project

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.