Problems with Scanner class in Blackdown JDK
I switched to Sun's JDK, and I'm still having the same problem. What can you recommend?
Mac
Quoted 36 lines
Quoted 8 lines · --- Yawar Amin
Try Sun's JDK.
--
Quoted 1 line · Mac
I'm currently using the most recent release of
the
Quoted 1 line
Quoted 1 line
Gentoo kernel, version 2.6.15. The JDK I am
using
Quoted 4 lines
is
Quoted 3 lines
Blackdown 1.4.2.03.
Basic java programs seem to compile just fine,
but
Quoted 2 lines
I
Quoted 1 line
have trouble whenever I try to use certain
import
Quoted 12 lines
Quoted 1 line
statements, specifically with the Scanner class.
For
Quoted 9 lines
example:
import java.util.Scanner;
(error message: cannot resolve symbol - class
Scanner)-- the same error message occurs with
import java.util.*;
Quoted 6 lines
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 4 lines · Mac
I switched to Sun's JDK, and I'm still having the same problem. What can you recommend?
Mac
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html says java.util.Scanner has only been present in the API since version 1.5. You need to use the latest version of the JDK.
--
Yawar
Malaysia +60 (12) 918 6642
Bangladesh +880 (174) 614 754 or +880 (2) 882 1848 or +880 (175) 003 706 or +880 (189) 250 170
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
I figured out that the problem was that my system wasn't using Sun's JDK as the default, even though it said it was using Sun's JVM. I ended up having to do a few things manually, instead of using the Gentoo java-config tool, and it finally worked.
Thanks for the help!
Mac
Quoted 1 line
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
Quoted 6 lines
says
java.util.Scanner has only been present in the API since version 1.5.
You need to use the latest version of the JDK.--
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs