How to transfer a project recorded in an eclipse?

I tried to move my project that was written in eclipse to another computer. I tried to declare the correct workspace, but the project does not appear in eclipse.

Is there a way to transfer the whole project, or should I rebuild the project with its packages and transfer only .java files?

+4
source share
7 answers

Follow the steps below to copy a project from one system to another.

  • Copy the project folder to the target system
  • Create workspace
  • Choose File> Import.
  • Choose General> Existing Project In Workspace.
  • Select the project folder (in the folder with root privileges)
  • Speak completion
+8
source

When moving objects from one eclipse instance to another, the most important files to move are the classpath and project files. They determine the structure of the project and the libraries necessary for its work.

Just copy the project folder to another computer and follow these steps:

  1. Open Eclipse 2. Go to File > Import 3. Existing projects into workspace 

The project should now be imported along with the sources.

You can also export the project and import it.

Which will help you if you separate the IDE file generation files with a build management tool like maven . This will help you not to support (and ultimately move) your project with its dependencies, but simply run the command to make it ready for the IDE.

If you run eclipse, the command will be mvn eclipse:eclipse

+3
source

enter image description here copy the project folder. Then use File / Export, then File / Import.

+1
source

Export the project to the selected directory on the current computer. Then copy it to another computer. Finally, import the project into Eclipse on another computer.

+1
source

You can export the project and import it back into the new system. when exporting, do not forget to check all the boxes so that all files are included in the package.

0
source

You do not need to import anything

You must install the JDK on the target computer. When you do this, problems may occur, but I got the latest version and it worked for me. Make sure that you are using the same version as before, either 64-bit or 32-bit for Windows.

If you are switching from Windows to Mac or something like that, or from 64 to 32 or vice versa, this probably won't work.

First, you need to outshine. Copy the eclipse folder. You can do it anywhere.

Secondly, you need to find the eclipse metadata folder. On a new computer, open eclipse and create a new project. Make sure you enter the default folder. Since it does not exist, eclipse will again create the same folder on your new computer. You have to go to your old computer, find this folder and copy and replace it with your new computer.

After you have copied this, you will find out that it worked if your eclipse starts as you left it on your old computer. All your windows will not display any code; he will say that "resource not found."

Now copy the project. The directory structure must be / exactly / the same. If you saved your project in a user file or something like that with a different path name, this will not work.

For example, one of my libraries was in my download folder. Everything else worked correctly. I went to the project-> build properties β†’ library tab, clicking on the library (it was kryonet), then clicked edit. Please note that you will know if something is missing because there will be an absence in brackets next to it. When you click on the edit, a browse window will open, you should find the missing resource file and double-click it to add it to your build path.

If your path to the project directory has changed from one computer to another, you will most likely have to go to the project properties and manually edit the path (as described above) for each resource that has a new location.

But no, you do not need to import anything.

0
source

Tested solution:

  • Copy the entire folder of your project to a new computer.
  • On this new computer, start Eclipse, select the old workspace that you copied accros above, or create it if you did not have one.
  • Choose "File" β†’ "Import ..." β†’ "General" β†’ "Existing Projects in the Workspace" β†’ "Next", then "Return to the root of the project / folder", select it, click "OK", and then, if this is a valid Eclipse project, you should see that it is being checked (a list of projects, this wizard is found. You can simply check the one that interests you, or you can also include demo projects - this is up to you). Click "Finish" and you are there.

source: https://www.eclipse.org/forums/index.php/t/248863/

0
source

All Articles