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

bobber205

macrumors 68020
Original poster
Nov 15, 2005
2,182
1
Oregon
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
 

Attachments

  • weirdJavaError.zip
    2.7 KB · Views: 70

reikon

macrumors newbie
Jan 15, 2006
20
0
kainjow said:
Bingo!

Code:
[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*

Code:
[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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.