The import java.util.Scanner cannot be resolved
I'm trying to change the version of Java that's running. When I do: update-alternatives --config java
There are 5 alternatives which provide `java'.
+ 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