PDA

View Full Version : Scanner Errors: Only on Mac OS X




bobber205
Jan 18, 2006, 08:24 PM
I was helping a friend on mine fix his homework code...

And once it was done it ran fine on his, but not on mine. The scanner class in the utility of java isnt' on my compouter apparently...

Is it running on yours?
Thanks.:D



kainjow
Jan 18, 2006, 11:53 PM
See http://forums.macrumors.com/showthread.php?t=93167 and http://forum.java.sun.com/thread.jspa?threadID=675538&messageID=3950590

I guess it's a part of J2SDK 1.5: http://www.apple.com/support/downloads/java2se50release1.html

reikon
Jan 19, 2006, 04:13 PM
See http://forums.macrumors.com/showthread.php?t=93167 and http://forum.java.sun.com/thread.jspa?threadID=675538&messageID=3950590

I guess it's a part of J2SDK 1.5: http://www.apple.com/support/downloads/java2se50release1.html
Bingo!

[reikon@reikon: ~/Desktop/weirdJavaError ]$ java ChangeMakerTester
Exception in thread "main" java.lang.UnsupportedClassVersionError: ChangeMakerTester (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
*grumble* *grumble*


[reikon@reikon: ~/Desktop/weirdJavaError ]$ java5 ChangeMakerTester
What is the amount due?3

What was the amount paid?2

Amount Due:$3.00
amount recieved:$2.00

Excuse me, you still owe me another$2.00
[reikon@reikon: ~/Desktop/weirdJavaError ]$

I don't think 3 - 2 = 2 though.