1

I am kind of new to the Eclipse IDE. I have a hierarchy of folders C:\...\org\xmlvm\iphone that contains a lot of java files. How can I use them in Eclipse via import org.xmlvs.iphone;?
UPDATE:
I found a .project and a .classpath file. Does that help? I also found a .jar file. Do I drop that in plugins or feature?

iCollect.it Ltd
  • 92,391
  • 25
  • 181
  • 202
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
  • The .project file is an Eclipse project descriptor. You could try using the Import Wizard (http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-70.htm) to import the whole project. The .jar file doesn't go in your eclipse -- you will want to set it up in your build path (http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-properties-build-path.htm if it's not in the .classpath file already). The help under the Eclipse help menu has everything I'm linking. It is your friend. :) – Josh McFadden Mar 07 '10 at 23:30

2 Answers2

2

Do you have a working Java project with a source folder? If so, copy the \org\xmlvm\iphone into the source folder so the tree looks like [source folder]\org\xmlvm\iphone. If you do not have an existing Java project, read the Eclipse docs for the New Java Project Wizard and follow those instructions to create a project. Then copy your files in per the above.

Josh McFadden
  • 394
  • 3
  • 9
1

You can add in your current Java project a linked folder pointing to that new directory.
Since you can have several source folder, simply declare that new directory as a source folder, and you are done.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250