When you use the svn plugin in eclipse to fetch the project to your eclipse workspace, it will simply download all the files and add it as folders. After downloading the project from SVN, you won’t have the option to make any folder as the source folder under “Java Build Path” option in Eclipse. Without converting a SVN project into an Eclipse based Java project, you cannot clean the project, modify the build path or add new third party jar files into it.

Now, how do you convert a svn based checked-out project into a Java project. The steps are mentioned below:

  • Note the location of your project on hard disk. This can be done by right clicking your SVN project in Eclipse and choosing properties in the popup menu. The screen showing the location of project is shown below:

    location

  • Close Eclipse IDE
  • Browse to the location where your SVN project is present on the hard disk
  • Open .project file (This file is created by Eclipse IDE as meta data)
  • Look for nature tag in this file.
  • Modify the nature tag with following text:

    	<natures>
    		<nature>org.eclipse.jdt.core.javanature</nature>
    	</natures>
    
  • Start Eclipse
  • Now you should be able to do everything that you do with a regular Java project
  • How to convert svn project to regular eclipse java project admin Eclipse
    When you use the svn plugin in eclipse to fetch the project to your eclipse workspace, it will simply download all the files and add it as folders. After downloading the project from SVN, you won't have the option to make any folder as the source folder under 'Java...
    When you use the svn plugin in eclipse to fetch the project to your eclipse workspace, it will simply download all the files and add it as folders. After downloading the project from SVN, you won't have the option to make any folder as the source folder under "Java Build Path" option in Eclipse. Without converting a SVN project into an Eclipse based Java project, you cannot clean the project, modify the build path or add new third party jar files into it. Now, how do you convert a svn based checked-out project into a Java project. The steps are mentioned below: <ul> <li> Note the location of your project on hard disk. This can be done by right clicking your SVN project in Eclipse and choosing properties in the popup menu. The screen showing the location of project is shown below: <img src="http://www.javaexperience.com/wp-content/uploads/2013/09/location.png" alt="location" width="784" height="542" class="alignnone size-full wp-image-3515" /> </li> <li> Close Eclipse IDE </li> <li> Browse to the location where your SVN project is present on the hard disk </li> <li> Open .project file (This file is created by Eclipse IDE as meta data) </li> <li> Look for nature tag in this file. </li> <li> Modify the nature tag with following text: 1 </li> <li> Start Eclipse </li> <li> Now you should be able to do everything that you do with a regular Java project </li>
    The following two tabs change content below.
    I run this blog with lots of passion. In this website, you will find tutorials on Core Java, Spring, Struts, Web Applications, Portals and Database. Please support me and the website by sharing the posts on your facebook / twitter. You can tap the share button at the top of each post. Thanks for the support.