This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Software to count java SLOC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Software to count java SLOC" Watch "Software to count java SLOC" New topic
Author

Software to count java SLOC

smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
Could anyone suggest me a free software that can be used to count java Software Lines Of Code?
(Sorry if I am in the wrong forum! Thought this is the apt one)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

http://linecount.sourceforge.net

Not the best one, but it's something I wrote years ago.
It can handle multiple files and directories and is quite configurable.

It's limited in that it cannot find comments that are after or before some code. Multi line comments are no problem though.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
Can't you use the line numbers on a text editor or IDE?

[Edit: Rob Prime's suggestion seems a lot better /edit]
[ December 11, 2007: Message edited by: Campbell Ritchie ]
smee bond
Ranch Hand

Joined: Sep 29, 2007
Posts: 34
Thanks for your suggestions. I could have used textpad to count the number of lines, but I want the count of only the code without comments or blank spaces. Meanwhile I was doing some search on the net and found the following tool:
http://www.andreas-berl.de/linesofcodewichtel/en/index.html
Its a neat tool....very helpful and easy to use.
 
GeeCON Prague 2014
 
subject: Software to count java SLOC