How to transfer Eclipse workspace and project from Windows to Linux and Mac

后端 未结 6 2122
醉酒成梦
醉酒成梦 2020-12-10 03:22

We have a a product developed on Windows for years. The product is composed of one Eclipse workspace and about 20 projects. On Windows, we ask every developer check out proj

6条回答
  •  长情又很酷
    2020-12-10 04:23

    I have ported my eclipse project from windows xp to RHEL(never tried Mac)

    Your task can be accomplished in the following steps :-

    1. Use workspace variables in your project code rather than absolute path.
    2. Shift your workspace to some location in linux as /Workspace or if you want to keep it user specific make the workspace folder as /home/user_name/Workspace.
    3. There is an option to change all the \ of windows to / in linux. The option can be found under the file menu in eclipse.
    4. Change the settings of where to find classpath directories, the options can be found by just right clicking on the project menu in the project viewer panel.
    5. There is an option to build the project clean from scratch. You just have to click on the option and eclipse would re-compile the project.

    Once all this is done, and all your database connections have been successfully ported to linux, you would have a working project running in linux as well.

提交回复
热议问题