BrianMc1958
asked on
ECLIPSE: Build not running at all?
Dear Eclipse Experts:
In one of my Eclipse projects, the build is failing to run at all. It's not that I'm getting errors: just nothing at all is happening. Nothing shows up in the console at all. I've tried "clean" also, and I've tried building a working set. For that project, though, nothing is doing anything.
One other clue is that although I know there are many syntax errors within this project, none show up in the package view. (I don't see the red x's).
One thing I did just before this happened was to (manually, outside of Eclipse) consolidate what had been two folders into one. One of the folders had been using the "default" package. I moved the source to the "packaged" folder, and added the appropriate package statements within the source.
Other projects within Eclipse are building just fine. I've tried rebooting. No luck...
I've only been working with Eclipse for about a month, so maybe I'm missing something obvious.
Any ideas?
Thanks,
BrianMc1958
In one of my Eclipse projects, the build is failing to run at all. It's not that I'm getting errors: just nothing at all is happening. Nothing shows up in the console at all. I've tried "clean" also, and I've tried building a working set. For that project, though, nothing is doing anything.
One other clue is that although I know there are many syntax errors within this project, none show up in the package view. (I don't see the red x's).
One thing I did just before this happened was to (manually, outside of Eclipse) consolidate what had been two folders into one. One of the folders had been using the "default" package. I moved the source to the "packaged" folder, and added the appropriate package statements within the source.
Other projects within Eclipse are building just fine. I've tried rebooting. No luck...
I've only been working with Eclipse for about a month, so maybe I'm missing something obvious.
Any ideas?
Thanks,
BrianMc1958
Right click the project and choose: refresh
;JOOP!
;JOOP!
And then:
MENU: Window->Show View->Problems double click on the Problems-TAB.
;JOOP!
MENU: Window->Show View->Problems double click on the Problems-TAB.
;JOOP!
or start a new project and copy your src folder over to new project and try building again....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If all of them fail, make sure you haven't back-dated your system for some reason.
Eclipse will not build if your system is in the past ;-)
________
radarsh
Eclipse will not build if your system is in the past ;-)
________
radarsh
>> One thing I did just before this happened was to (manually, outside of Eclipse) consolidate what had been two folders into one
Do you have a separate output folder? Or are the class-files in the same folder as the Java-files? Try closing Eclipse, deleting the output directory (if it is separate) or deleting the class-files (if it is not separate). BTW, you should not have manually merged the directories. You can move classes between packges quite easily in Eclipse itself and it will handle the code-correction, package renaming, etc for you. If you are not able to delete the classes directory even after Eclipse has been closed, then see if some process is still running which might be using the classes and stop it (e.g., rmiregistry in case you use RMI).
Do you have a separate output folder? Or are the class-files in the same folder as the Java-files? Try closing Eclipse, deleting the output directory (if it is separate) or deleting the class-files (if it is not separate). BTW, you should not have manually merged the directories. You can move classes between packges quite easily in Eclipse itself and it will handle the code-correction, package renaming, etc for you. If you are not able to delete the classes directory even after Eclipse has been closed, then see if some process is still running which might be using the classes and stop it (e.g., rmiregistry in case you use RMI).
ASKER
To Fargo: You were right. A jar was missing. Any way I can get Eclipse to tell me when a jar is missing? It seems unfriendly that it would just do nothing. (Nothing showed up under "problems", etc...).
Will award points to Fargo in a few hours...
Thanks to everybody again,
BrianMc1958
Will award points to Fargo in a few hours...
Thanks to everybody again,
BrianMc1958
Utility MAVEN can tell what you're missing and even automatically retrieve it from the internet.
;JOOP!
;JOOP!
>> A jar was missing.
Which one? Was it some class being used in your code? In that case, there should have been compilation errors shown....
Which one? Was it some class being used in your code? In that case, there should have been compilation errors shown....
ASKER
Yes. It was a class being used in my code. (It was a jar that I create and move into another path. I had failed to move into that path yet.) I agree there should have been compilation errors. Any more ideas on that?
Thanks again,
BrianMc1958
Thanks again,
BrianMc1958
>> I agree there should have been compilation errors.
Surprises me that there weren't any.
Surprises me that there weren't any.
ASKER