Build Paths evade me [solved]

In my previous topic, you all got to watch in suspense as I learned about build paths and how to load buffered images. Everything went well, and it did. That was a test project where the res folder consisted of one .png and there was only one source folder.

Well now I’m trying to get the image processor into the actual game, and things aren’t quite working out.
Currently I have two source folders (and I am positive that number will increase) but that hasn’t been a problem yet. My res folder has several sub folders in which I organize a bunch of different resources, but that hasn’t been a problem either (just thought I’d tell you if it was important)
One of the folders in my res folder is “levels” and in that folder I keep my .pngs of my level layouts. So I implemented my image reading class and everything should work. I put my res folder in my build path and fire up the game in eclipse. But then eclipse said that there’s an error and asks if I should “run it anyway”. Well, I run it anyway and it says that it can no longer find my main method “GameRunner”

What? Why not? This wasn’t a problem before. I take the res folder out of the build path and edit the source code so it never runs the ImageProcessor class, and it runs just as it did before I implemented that class with no problem.

What did I do wrong now? :stuck_out_tongue:
Thanks

If there’s an error in your build, then you really can’t have any idea what state your build is in if you choose to run it anyway. Fix the error, and do a clean and full rebuild.

But I don’t know how to fix the error and have the res folder in my build path. The error is not because I missed a semi-colon in my source or anything like that. The error pops up whenever the res folder is in the build path, and disappears whenever I take it out.

Basically what I’m saying here is that I have no idea how build paths work.

If anybody would just tell me how they would structure their build path, or say, “I just do X Y and Z and that works” that’d be fine

What error do you get exactly?

Oh hey… It started working. (?)

(To reply anyway, the error was something to the effect of “The Main Class “path.GameRunner” could not be found”)

I was fiddling around with all the options, and here’s what I did that worked:
I took the “res” folder out of the build path
I put only the “levels” folder into the build path

I hate it when threads end like this, but what can ya do. I’m happy. :slight_smile:
Thanks everybody, sorry to have wasted a little bit of your time

Create the habit of pressing F5 on eclipse’s navigator everytime you change/add something.

I’ve lost track of how many hours i lost because of path errors :cranky: