How to import existing j2s projects in eclipse

Source: Internet
Author: User
Each time you open eclipse, eclipse loads some engineering projects by default. These engineering projects are all previously done, but they are not deleted from the project list in time! So we often remove unnecessary projects from the current project browser directly, otherwise the eclipse startup will become slower and slower. However, sometimes we encounter some problems when loading some previous projects, such as loading a j2-based project, if we click File-> Import-> General-> existing projects into workspace from the menu bar, select the select root directory radio button, and then click browse ..., find the directory where the project is located and load it in. In this way, you can load the j2-based project. At this time, you will find that the loaded project has an error and cannot run. What causes this? In fact, the project imported according to the above method is imported as a standard Java project, rather than being introduced as a j2-'s j2-midlet suit project, the Construction Path of the natural engineering project does not include the j2's class library used by j2m's! So it is reasonable to see an error! Now, after understanding the cause, how can I import the j2's project! I also checked it on the Internet before. Many netizens said that they would create another j2-based project to directly copy the packages and contents! Of course, you can do this without having to do it! If you can only do this, you can only say that it is a bug in eclipse. Later we found a good method, that is, we can follow the steps to build a j2_project, but the name of the project to be created is the same as the name of the j2_project we want to load, of course, the directory for creating the project should be the same as the project for loading the j2's project. In this way, click Next to load the j2's project. Of course, it can be directly run!

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.