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.

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.

I did have a link here, but it wouldn't let me post a link grrr.

Ok it doesn't do a lot but show a picture and put some text over it, but it is my second java program. The first being 'Hello World' LOL.

I have written in C++ and java seems pretty close to this.

Anyway thanks a lot.

I am thinking of porting one of my programs over from C++ and SDL to java. Just got to learn how sprites work with the double buffering and stuff first.

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: