For Programmers: Free Programming Magazines  


Home > Archive > Java Help > March 2006 > How to simply create an Eclipse project and add some existing java source files ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to simply create an Eclipse project and add some existing java source files ?
Gunter Hansen

2006-03-30, 7:04 pm

I have developed some simple java classes (files) with some GUI elements. Nothing special.
Up to this point I developed these classes by using the command line JDK v1.4.2

Now I want to use Eclipse as development IDE for the further development.

I installed successfully Eclipse and started it but then the questions start:

I clicked menu File->New->Project and the wizard let me choose
e.g. between "Java project", "Java"->"Java Project" and "Simple".
Hey, what's the difference?

Ok, I selected "Java Project" and clicked next, next, Finish.

Now I wanted to add the previously created java sources outside of Eclipse.

How do I do this?

If I right click in the PackageExplorer on myProject and select "import" I cannot see
a "java source" entry. Alternatively I did not found a menu entry "add external java sources"
or similar.
If I move my old *.java files to the workspace folders they are not automatically included

So again: How do I add external source files otherwise?

Gunter

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com