Java Code Analyzer tools

Posted on 2009-02-16
Last Modified: 2012-05-06
I am looking into various Java Code Analyzer tools . The one that catches the eye is JStyle
because of the following metrics
Depth of Inheritance
Class fan-in/fan-out
Cyclomatic Number
Halstead Measures
Weighted Methods Complexity
However I am not in a position to afford the steep license fee.

Question : Is there any other opensource tools that can generate the same metrics preferably in XML format?

Question by:arnabkundu
    LVL 3

    Assisted Solution

    you can take a look on JavaNCSS  ( ), on metrics ( and on pmd (

    If you are using maven, take also a look on sonar which aggregates results from JavaNCSS, Checkstyle, PMD, cobertura in a synthetic view.
    LVL 12

    Accepted Solution

    A complete list...

    I prefer findbugs.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Using object mapper in spring web application 8 39
    advance java 4 36
    Receive file in Servlet 1 28
    computer science syllabus 3 40
    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now