How do I check out an SVN project into Eclipse as a Java project?

175,991

Solution 1

If it wasn't checked in as a Java Project, you can add the java nature as shown here.

Solution 2

Here are the steps:

  • Install the subclipse plugin (provides svn connectivity in eclipse) and connect to the repository. Instructions here: http://subclipse.tigris.org/install.html
  • Go to File->New->Other->Under the SVN category, select Checkout Projects from SVN.
  • Select your project's root folder and select checkout as a project in the workspace.

It seems you are checking the .project file into the source repository. I would suggest not checking in the .project file so users can have their own version of the file. Also, if you use the subclipse plugin it allows you to check out and configure a source folder as a java project. This process creates the correct .project for you(with the java nature),

Share:
175,991
Hosam Aly
Author by

Hosam Aly

I'm interested in developing top quality software, optimizing performance, refactoring code, and learning about core computer science topics. For more information about me, please check my LinkedIn profile. I'm currently available for contracts, preferably using Scala or Ruby (outside finance, media, fashion, and advertising).

Updated on October 26, 2020

Comments

  • Hosam Aly
    Hosam Aly over 3 years

    I was trying to check out a project from SVN using Eclipse. I tried using "Checkout As" to make it into a "Java project from existing Ant script", but the project wizard requires the file to have already been downloaded. Is there a way to checkout the project into Eclipse as a Java project, without having to download it elsewhere first?

    (I am using Eclipse Ganymade 3.4.1 with Subversive.)

  • Hosam Aly
    Hosam Aly over 15 years
    This doesn't make it a Java project if it's not already configured as so in the repository.
  • Tony
    Tony over 12 years
    I would recommend checking out the project using the File system. Then in Eclipse, import existing Java project. It shouldn't matter what is in the repository, Eclipse should make it a Java project. Or as close to one as possible.
  • user2763361
    user2763361 about 10 years
    @Tony What is a "File System"
  • Tony
    Tony about 10 years
    @user2763361 Sorry for the late response. But, simply using an external client like Tortoise or the cmd line of your operating system.