I am new to Sonarqube. Can I perform code analysis of a .ear when I don't have source code available with me? Also, does it requires to set SonarQube locally? Any tutorial link would be most helpful.
No. SonarQube is looking at the source code at a minimum. So your first step is to obtain the source code!
Once you have the source code, you'll have a choice of: