How can I calculate the number of lines in a "Java Project"?
I'm using Netbeans 6.9.
Have a look at the NetBeans Metrics Module.
NetBeans Metric Module is a module for NetBeans that can measure your java source code and display the results in NetBeans.
Or the wordcount plugin.
Counts characters, words, and lines of java files