3 Replies Latest reply: Mar 24, 2011 11:39 PM by RedWolf
coldcrow Level 1 (10 points)
I'm new to Xcode 4. I have some made some Java projects before for Android in NetBeans. Will it be possible to port over Java code easily to Xcode? Or can I only use Object C to code in Xcode 4?
  • etresoft Level 7 (27,445 points)
    You would probably have to setup a Makefile-based project for use with Java.
  • Bob Lang1 Level 5 (4,080 points)
    Hi coldcrow

    You can code in Java with Xcode, but in a separate forum one of Apple's Java developers said that it is now only meant for small scale Java projects. If you've already got some experience with Netbeans then you might do better to continue with Netbeans and don't worry about Xcode.

    On a personal note, I used to be a keen on using Xcode for Java, but the support for the language declined over time, it never had a Java GUI designer, bits (like the debugger) stopped working properly, and projects that worked one day suddenly became deprecated and then stopped working. In the end, I lost patience with it and moved to Netbeans. I now have a collection of old Xcode Java projects dating back to 2004 that simply won't run any more; as and when I need to use them I now have to transfer them to Netbeans, and I wish I'd never started with Xcode. At least Netbeans is under continuous development and will always support Java.

    If any reading that mini-rant you still want to continue with Xcode for Java then I'll wish you good luck!

  • RedWolf Level 2 (210 points)
    Since Apple is trying to remove itself from maintaining Java for OS X, any support there is now for Java in Xcode will likely disappear in a future version in the not too distant future.