java in Xcode missing classes?

Discussion in 'Mac Programming' started by firefly01, Jun 10, 2007.

  1. firefly01 macrumors newbie

    Joined:
    Jun 9, 2007
    #1
    I'm taking a beginning java course. The instructor is directing everyone to the NetBeans environment, so, as a Mac owner, I dutifully downloaded Xcode instead. To my disappointment, the compiler can't find the Scanner class (in java.util). How is this possible? More to the point, what do I do now? I need to write lots of programs that ask for user input.
     
  2. Eraserhead macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    Scanner was introduced in Java 1.5 you'll need to download the latest JDK version from the Java section on the developers site as Xcode only comes with Java 1.4

    Also Xcode isn't great at Java, most Java programmers recommend other programs and that is what I've used in the past. If everyone else in the class is using Netbeans I'd recommend using that, there is a Mac version.
     
  3. firefly01 thread starter macrumors newbie

    Joined:
    Jun 9, 2007
    #3
    There IS a Mac version of Netbeans? Ok, I'll go look again. Thanks so much for your help!
     

Share This Page