|Re: Failing to get java programs with more than one class to run [message #761724 is a reply to message #761690]
||Wed, 07 December 2011 00:04
| Russell Bateman
Registered: July 2009
Location: Provo, Utah, USA
On 06-Dec-11 15:19, Thomas Williams wrote:|
> Hi Russell,
> You are some kind of super human genius.
> After 4 days of pulling my hair out you solve my problem.
> I didn't think renaming the class in the refactor menu, and then doing
> clean would work, but it did. Except when I do that it deletes
> everything in the bin folder which is inconvenient, as my jpg was in
> there I was trying to get to view. Perhaps I should keep jpegs out of
> the bin folder, and link to them.
Genius? No, I just happened to answer your question first. Any other
responder in this forum would have pointed out the same thing.
Yup, never put anything in the bin subdirectory of a Java project (or,
in the case of a Dynamic Web Application project, the build
subdirectory). Reserve it for Eclipse to put compiled class files into.
Your .jpg and other resources should go under the src directory in the
package that consumes them or, perhaps, under src/resource to suite your
tastes. There's a whole science to this (and it hasn't much to do with
Eclipse although we think sometimes that it does since IDE often appears
to equal language). I'd suggest Googling around, but you could start here:
It's easy to get confused with this stuff. The best forums for such
questions (since this isn't an Eclipse question) are stackoverflow and
Best of luck my friend,
Powered by FUDForum
. Page generated in 0.03278 seconds