Skip to main content

How to import java project to Eclipse?

2 replies [Last post]
techissue2008
Offline
Joined: 2008-05-23
Points: 0

Hi

I just got a java project which has jsp, java, struts and the .settings folder has
org.eclipse.core.resources.prefs
org.eclipse.jdt.ui.prefs
org.eclipse.ltk.core.refactoring.prefs
org.eclipse.wst.validation.prefs

.Project file has org.eclipse.jdt.core.javabuilder
org.eclipse.jdt.core.javanature

The jsp and java files are under src folder.

Since it is my first time to use eclipse platform, I do not know where should I put all those source files?
Is it a dynamic web application to have those *.prefs in .settings folder?

Thanks for help

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
giulio79
Offline
Joined: 2008-05-26
Points: 0

This feature in eclipse changed recently. The way it actually works in eclipse 3.3.

The way I normally do it is by:
java - new - project - java project

and then choose "create project from existing source"

This will not copy the files into your workspace directory and will expect the files not to be there.

so you will basically be using a different directory for your project in a separate position from your eclipse workspace.

I prefer doing this way because I can keep separate the various projects and the topics they belong to in an easier way.

the import - existing projects into the workspace would copy your project files into the workspace directory, and that's fine too... depending on what you like more. or on the proj.

G

walterln
Offline
Joined: 2007-04-17
Points: 0

I think you are looking for File -> Import -> Existing project into workspace