Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to migrate applications from Eclipse 3.x to IntelliJ IDEA

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "how to migrate applications from Eclipse 3.x to IntelliJ IDEA". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to migrate applications from Eclipse 3.x to IntelliJ IDEA.

1. Create a new project for ntelliJ IDEA (File | New project). Open the new Project window.

2. Select Import project from external model,Next

3. Choose to import Eclipse projects, and also support Flash/Flex Builder and Maven projects. Next

4. Select the directory where the Eclipse application is located. Next

5. Select the project to import, Finish

6. At this point, IntelliJ IDEA will import the project and establish it.

7. Shortcut key Ctrl + Alt + Shift + S or toolbar

To open the project structure

The first thing you see is the various settings for project.

If you have not previously configured JDK (SDK) used by IntelliJ, you can see

If configured, drop down and select the SDK you want to use.

8. To configure the SDK used, click the New button under Project SDK, and select JSDK:

9. Find the JAVA_HOME directory in the file system of the pop-up window and save it back.

10. Set the compiled output path of the project. You can choose the default here, or you can set it according to your own definition. Since it is a single module project, I directly set it to classes. (in fact, it is also recommended that there is only one module in a project.)

11. Select the setting of Module. Here we mainly talk about the setting of Paths.

Here you mainly set the output path of the current Module.

12. The environment dependence of the current module:

At this point, in fact, the basic migration has been completed.

If it is not a single java application, such as using spring, then the configuration file of spring can be managed here. Click the plus sign in the column above Modules:

Then select the configuration file used by the project spring in the window on the right.

If it is a web application, also add a web Facet, set the web.xml location, and the root path of the web application.

In this case, you are generally prompted to set Artifacts. Just follow the prompts to Fix. After setting up, the Artifacts is as follows:

13. Libraries, as the name implies, will not be verbose. Generally, you don't need to set up the port. Just use the environment dependency above.

At this point, the setup is complete.

For the settings of the web container, simply mention that in the main menu:

Location, click configure, and select the web container to be configured. The configuration is similar to eclipse, choose an easy home directory, and so on. If I use jetty (there is no plug-in by default), after configuration.

Click start, and you can see it.

If it is a simple application, the migration process is generally completed from the end of the migration wizard to the end of setting up SDK. Web or the introduction of other modules need to be set up slightly, on the whole, it is relatively simple.

At this point, I believe you have a deeper understanding of "how to migrate applications from Eclipse 3.x to IntelliJ IDEA". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report