I have ported my eclipse project from windows xp to RHEL(never tried Mac)
Your task can be accomplished in the following steps :-
- Use workspace variables in your project code rather than absolute path.
- 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.
- There is an option to change all the \ of windows to / in linux. The option can be found under the file menu in eclipse.
- 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.
- 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.