Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Comiler - How to find out the Number of lines of Executable code

838855Feb 11 2011 — edited Feb 14 2011
Hello,
Is there any option we have or could have to get the "Number of Lines of Executable Code" while we run the java compiler?
Technically Java is an interpreter. So in case the term is incorrect, please excuse me.

Since the compiler anyway traverses through the Java files, it is easy and correct to get the number from the compiler rather than having any external tool calculating the same.

It should remove the comments, blank lines and take care of java single sentence written in multiple lines.

Any suggestions or help is highly appreciated.

regards,
Sabyasachi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2011
Added on Feb 11 2011
10 comments
4,159 views