Add source code to project [message #1238272] |
Fri, 31 January 2014 16:42  |
Eclipse User |
|
|
|
I want to add my .java source file to my project, but everytime I get a red circle with a cross inside, right next to my project name and my src folder.
I opened my Eclipse then did the following.
Creating new Project: File > New > Java Project
In "Create a Java Project" window I typed the Project name then clicked Next then clicked Finish.
Adding source file:
I expanded the Java project, opened the folder where the source code is located, then dragged and dropped it into the src folder.
Then I get the red circle with a cross inside, right next to my project name and my src folder.
Am I doing something wrong?
|
|
|
|
|
Re: Add source code to project [message #1239653 is a reply to message #1239649] |
Tue, 04 February 2014 12:57  |
Eclipse User |
|
|
|
Right-click on the Project, select Properties, then go to the Java Build Path section and see if any problems are indicated there. Or sort the Markers view so that Build Path problems are at the top.
When a project has huge numbers of errors it usually means the build path is not correct. As I said, see the Getting Started guides for examples of setting up Java projects using existing source; most problems like this are due to not understanding how to configure Java projects properly.
|
|
|
Powered by
FUDForum. Page generated in 0.08683 seconds