Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Software to count java SLOC

 
smee bond
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50241
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic