Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

firefly01

macrumors newbie
Original poster
Jun 9, 2007
3
0
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.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.