I am kind of confused... I really don't know, where to put this thread In Showcase ? No, thats not even a game. In SharedCode ? No, I don't even show any code of this project.So I just put it in "General Discussions", I think that is the best solution...

Riven or anyone else, move this, if this is wrong

So. Now back to topic:Count lines with CountLines. Believe me, he is friendly... lol If you start the program, you get some info printed, and the program waits for you to press Enter.If you do so, it will count the lines, and make some more statistics about your .java files, recursivly under the directory, the .jar is placed in.Enjoy!Better download first.

I've used CLOC, but I don't like the output too much. I tried this one, but its output isn't what I'm looking for either. I generally just want to know how many lines a project is. Comments don't count. Lines with just braces don't count. Your statistics are ok, but you don't have the useful number I'm looking for. I could subtract from total lines: empty lines, comment lines, etc but that is too much effort. Also I'm not sure how you are handling lines that aren't empty but aren't very useful (eg only braces).

Counting only lines containing semicolons is usually a more meaningful estimate for java code. It'll count commented-out code and examples, but when you think about it, it's still code you've written, even if it's not executed.

Even then, code density varies. It's really just a way to gauge the ballpark size of a codebase in the end, and only really good for comparing with code written in the same style (such as modules in the same codebase)

I've used CLOC, but I don't like the output too much. I tried this one, but its output isn't what I'm looking for either. I generally just want to know how many lines a project is. Comments don't count. Lines with just braces don't count. Your statistics are ok, but you don't have the useful number I'm looking for. I could subtract from total lines: empty lines, comment lines, etc but that is too much effort. Also I'm not sure how you are handling lines that aren't empty but aren't very useful (eg only braces).

Counting only lines containing semicolons is usually a more meaningful estimate for java code. It'll count commented-out code and examples, but when you think about it, it's still code you've written, even if it's not executed.

Even then, code density varies. It's really just a way to gauge the ballpark size of a codebase in the end, and only really good for comparing with code written in the same style (such as modules in the same codebase)

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org