Recently I updated my computer to Ubuntu 11.10 64-bits. I have a problem when importing my projects, it gives me an error
“The method onView() must override a superclass method”.
I read in some other posts that the error should be the use of java 1.5, but Ubuntu 11.10 comes with open-6-jdk.
any ideas of a solution?
It sounds like the JDK compliance level of your project is set to 1.5. (The version of Java installed on the machine only determines how high you can set the compliance level.) You can check this in Eclipse by opening the project properties (right click on the project name, then select “Properties”) and selecting “Java Compiler” on the left.
In Java 1.6, the
@Overrideannotation can (and should) be used on methods that are defined in implemented interfaces. Java 1.5 did not allow this.