|
|
|
Re: Failing to get java programs with more than one class to run [message #761636 is a reply to message #761611] |
Tue, 06 December 2011 19:25 |
|
On 06-Dec-11 11:36, Thomas Williams wrote:
> Hi,
>
> Well it is kinda in upper and lower case. :d
>
> Do package names have to be in all upper or lower case then?
>
> regards
> Thomas
Yes, package names are always lower case with no underscores. Although,
no, they do not have to be to work. Class names are camel-back case.
Etc. There are specific practices defined for all this in Java.
|
|
|
|
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 |
|
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.
>
> [snip]
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:
http://stackoverflow.com/questions/270197/java-in-eclipse-where-do-i-put-files-on-the-filesystem-that-i-want-to-load-usin
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
javaranch.
Best of luck my friend,
Russ
|
|
|
Powered by
FUDForum. Page generated in 0.04795 seconds