开发者

How can I add Java Template Project in Xcode 4?

开发者 https://www.devze.com 2023-03-06 19:39 出处:网络
I wanna know how can I add Java Template Pr开发者_StackOverflow中文版oject in Xcode 4. I\'m working with Eclipse and it\'s really fine but i want to write Java program in Xcode.

I wanna know how can I add Java Template Pr开发者_StackOverflow中文版oject in Xcode 4. I'm working with Eclipse and it's really fine but i want to write Java program in Xcode. Thanks for helping. ;)


Java is not a first class citizen of Xcode anymore, so you should in my opinion stay with Eclipse.


I realise this question is 6 years old, but I have a similar problem and found what seems an easy solution. I have an old Java project (2008-9) which I maintain but has been dormant. As I prefer to keep it into Xcode I transferred the whole project (sources, project files and all paraphernalia) to a new development machine running el Capitan with Xcode 7.3.1. I opened the project (which was still in 3.1 version) with it, and tried to build it. It failed as Ant was missing. So I downloaded Ant (version 1.10.1) and copied its bin and lib directories under /usr/local/ant, then I changed the project external build tool configuration (under project, go to Info, and you'll see that parameter) which was set to /usr/bin/ant and set it to /usr/local/ant/bin/ant or wherever you put it. Build again and this time it worked.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号