I followed the instructions from this link. I don't know if this one works for every one.

I compile Pentaho BI platform source code, some projects are fine but there are errors in some as well.
One error I see in some bi-platform-projects--> test-src is "The hierarchy of the type 'Class name' is inconsistant". 'Class name' is the name of a compiled class.