|
![]() |
Sometimes the only way things ever got fixed is because people became uncomfortable.
Tim Holloway wrote:Welcome to the Ranch, Clayt!
The Code button in our message editor allows you to add Code tags to wrap your source code, XML, and other structured text to make it more readable. I've added them for you here.
I'm not sure what the question you have is, though. About the only thing questionable was that you said that Eclipse says is already defined. And if that's true, we'd need a directory listing of your Eclipse project - preferably as text, not a screenshot.
Lou Hamers wrote:Sounds kinda like a build environment problem. The kind of that sometimes will "randomly" disappear if you modify the class in question (or rename it), run a manual "clean", restart the IDE, etc. - none of that code is a problem. Randomly vanishing problems are the best! :/ (lol not really)
Try refactoring (renaming) the BarrelMill class to something else using Eclipse's refactor feature, and then rename it back the original name. That may wake the thing up. Unless there really is some other issue (then follow the help given above).
Lou Hamers wrote:Sounds kinda like a build environment problem. The kind of that sometimes will "randomly" disappear if you modify the class in question (or rename it), run a manual "clean", restart the IDE, etc. - none of that code is a problem. Randomly vanishing problems are the best! :/ (lol not really)
Try refactoring (renaming) the BarrelMill class to something else using Eclipse's refactor feature, and then rename it back the original name. That may wake the thing up. Unless there really is some other issue (then follow the help given above).
It appears that once BarrelMill is defined there is no way to delete it from Eclipse so creating a class BarrelMill (even from scratch) still sees the old definition.Clayt Cramer wrote:
Lou Hamers wrote:Sounds kinda like a build environment problem. The kind of that sometimes will "randomly" disappear if you modify the class in question (or rename it), run a manual "clean", restart the IDE, etc. - none of that code is a problem. Randomly vanishing problems are the best! :/ (lol not really)
Try refactoring (renaming) the BarrelMill class to something else using Eclipse's refactor feature, and then rename it back the original name. That may wake the thing up. Unless there really is some other issue (then follow the help given above).
I did that did a clean and build all.
No change.
Clayt Cramer wrote:
It appears that once BarrelMill is defined there is no way to delete it from Eclipse so creating a class BarrelMill (even from scratch) still sees the old definition.Clayt Cramer wrote:
Lou Hamers wrote:Sounds kinda like a build environment problem. The kind of that sometimes will "randomly" disappear if you modify the class in question (or rename it), run a manual "clean", restart the IDE, etc. - none of that code is a problem. Randomly vanishing problems are the best! :/ (lol not really)
Try refactoring (renaming) the BarrelMill class to something else using Eclipse's refactor feature, and then rename it back the original name. That may wake the thing up. Unless there really is some other issue (then follow the help given above).
I did that did a clean and build all.
No change.
Clayt Cramer wrote:
Clayt Cramer wrote:
It appears that once BarrelMill is defined there is no way to delete it from Eclipse so creating a class BarrelMill (even from scratch) still sees the old definition.Clayt Cramer wrote:
Lou Hamers wrote:Sounds kinda like a build environment problem. The kind of that sometimes will "randomly" disappear if you modify the class in question (or rename it), run a manual "clean", restart the IDE, etc. - none of that code is a problem. Randomly vanishing problems are the best! :/ (lol not really)
Try refactoring (renaming) the BarrelMill class to something else using Eclipse's refactor feature, and then rename it back the original name. That may wake the thing up. Unless there really is some other issue (then follow the help given above).
I did that did a clean and build all.
No change.
Weirder and weirder. I deleted BarrelMill.java from the cmd line and created a new class.
Error: Main method is not static in class BarrelMill, please define the main method as:
public static void main(String[] args)
Sometimes the only way things ever got fixed is because people became uncomfortable.
Tim Holloway wrote:It would have helped to have a tree listing of the entire BarrelMill project directory. There may be skunks in the woodpile that we can't see here.
I'm curious why there appears to be a zero-length file named BarrelMill in the BarrelMill\src directory, though.
Clayt Cramer wrote:
Tim Holloway wrote:It would have helped to have a tree listing of the entire BarrelMill project directory. There may be skunks in the woodpile that we can't see here.
I'm curious why there appears to be a zero-length file named BarrelMill in the BarrelMill\src directory, though.
BarrelMill was the result of "dir >BarrelMill" so the file was created before the DIR command ran.
Sometimes the only way things ever got fixed is because people became uncomfortable.
I typically add a ".txt" to the end of a file like that. Eliminates confusion and lets Windows know how to open it if you double click on it.Clayt Cramer wrote:BarrelMill was the result of "dir >BarrelMill"
Sometimes the only way things ever got fixed is because people became uncomfortable.
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
|