Pages

Thursday, October 31, 2013

How to import war files into eclipse

To import war files into eclipse,following are the steps.

  1. Select File > Import .
  2. In the Import dialog, select WAR file and then click Next.
  3. Give the location of  WAR file that you want to import using the Browse button.
  4. The wizard assumes you want to create a new Web project with the same name as the WAR file. If you accept this choice, the project will be created with the same servlet version as specified by the WAR file and in the same location. If you want to override these settings, you can click New and specify your new settings in the Dynamic Web Project wizard.
  5. Click Finish to complete the set up.

Sunday, October 27, 2013

How to import java projects in eclipse

1)If you have downloaded a zip file ,then unzip the folder.
2)Go to Eclipse and select File->Import
3)Under General folder select  Existing projects into workspace
4)Click on Next  button.
5)Give the root directory location ,i.e browse to the location of the unzipped folder
6)Click on finish
7)Do a project refresh








The resource is not on the build path of a Java project."

I googled a lot for this error and could not get a proper solution.So i have resolved it my self.

Steps to resolve
-------------------
1)GO to package explorer ,right click on the src folder.
2)Go to Build path and select "Add as source folder"
3)Below is the screenshot.
4)Now the f3 errors,organise imports etc are resolved.
5)If it still doesn't  reflect,go ahead and do a clean build.