Developing Java in XCode is just swimming upstream in my opinion.
As others have said, use a native Java IDE. IntelliJ if you don't mind paying for one, or Eclipse/Netbeans if you want free. (As a side note, everyone I've talked to says IntelliJ is *well* worth the money)