What exactly do you mean by " go to each class, exclude the build path and then include it again. "? I ask because the build path is associated with the project, not with the class files. Also, once you set up the build path to reference the JARs your project requires, those JARs should always be in the path. Double-check the .classpath file in the base directory of your project to ensure that it is maintaining your classpath.
And by the way, this forum is for Eclipse and other IDEs, so you asked in the right location.
When I compile this program from the dos prompt it compiles and runs just fine.
If I create the program by, "new java project" and create the simple Circle class with a main method, it works. But when I close Eclipse down and re-open it I get the above url. (http://www.netmatrix.com/java1.jpg)
This is getting really frustrating. I don't know how to prevent those x's from showing up and they ultimately tell me something is wrong with my Eclipse set-up or project set-up... not sure. I am all of 1 month into Java (done C, C++, vb).
Unfortunately. java1.jpg doesn't tell me anything. Yes, I see the red X, but the project was not expanded so I cannot tell what Eclipse thinks is wrong. If you expand it all the way I could tell better.
Also on java1.jpg, Eclipse is complaining that it cannot find class Circle. Unfortunately the part of the source shown omits the package declaration thus I cannot tell which package Circle is in. And that makes a huge difference.
With java1.jpg, you blanked out the most important part of the path. Vista is a little picky about where you place things, so without knowing he directory whose name you hid I can only make guesses. The blanked-out portion is too long to be Users. I hope it is not Program Files (that is the worst place to put anything in Vista). I also hope it is not ProgramData, that is another sure way to cause yourself grief.
On my PCs I place eclipse at c:\apps\eclipse, and my workspace is at c:\opt\workspace. Neither of these directories is special to Vista (or Windows 7, which I am using) which means that the OS will not get in my way by doing "helpful" things for me security-wise. In addition, I own c:\apps and c:\opt, and I have full access rights, so there is no questions of my rights to access anything in those directories.
But essentially that dialog box is telling you that you don't have write access to the directory. Is your account and admin account? What is your UAC setting? Have you tried running Eclipse as an administrator? I suspect that until you get around the Vista security issues you will continue to see red Xes.
Joined: Jun 17, 2011
I have un-blacked the path, it was just a habit.
Is there enough detail in the images now? I'm really motivated to get these little bothersome issues solved so if there is any other info I can provide please let me know
Look in the "Problems" view. There will be one or more lines with the same little red "X". We need to see the text from those lines. Double click each one to open it up; if there's more possibly useful text, we need to see that, too.
Well, that error message is pointing you to the problem. Eclipse wants to store information in a particular location inside the ".metadata" directory it wants to keep inside your workspace (C:\Athabasca\java\Kiley\.metadata), but for some reason, it's failing to do so. Figure out why, and your problem will be solved.
- Is your disk full?
- Do you for some reason not have permission to write there (for example, perhaps some other user owns it?)
- Are you experiencing hard disk failures?
- Is a misguided anti-virus program blocking the writes?
Or maybe your workspace is just corrupted. If you don't have too much invested in the workspace itself, you might simply create a new one, and copy your Java source code into it; chances are the new one will be just fine.
Joined: Jun 17, 2011
Done! I just created a new workspace and, from what I've seen, the issue is gone. Thank you very much. I need to google how to get Eclipse to open the second workspace instead of the one giving me grief.
author and iconoclast