|
The import java.util.Scanner cannot be resolved
Hi,
I'm trying to change the version of Java that's running. When I do: update-alternatives --config java
I get:
There are 5 alternatives which provide `java'.
1 /usr/bin/jamvm
2 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
3 /usr/bin/gij-wrapper-4.1
+ 4 /usr/lib/jvm/java-gcj/jre/bin/java
* 5 /usr/lib/jvm/java-6-sun/jre/bin/java
When I try to compile a program with javac, I get:
The import java.util.Scanner cannot be resolved and Scanner cannot be resolved to a type
Any ideas?
|