Manually set JDK path in Eclipse

13,191

as per my suggestion, it is not good to remove that line. you need to change to JDK version in your eclipse then you will not get such errors. Follow, following steps for it,

Right Click on your Project & select Properties.

Then from the left section Select Java Compiler & select the Version of the JDK you installed. If it is already selected then de-select it & try it.

Share:
13,191
Finnboy11
Author by

Finnboy11

I'm an active developer with about six years of Android development experience as a hobby and two years of professional full-stack web development experience. I'm working with many various apps and games. #SOreadytohelp Learning is a necessity, teaching is a job. Helping is how you improve the world.

Updated on June 04, 2022

Comments

  • Finnboy11
    Finnboy11 almost 2 years

    I'm trying to install Eclipse, Android SDK, JDK6 and JRE6 to one of the computers in my school. I have limited access to it so I can't run any installators or modify the program files folder. I have installed everything on my home computer and transferred the files to the other computer by using memory stick. Eclipse, Android SDK and JRE6 work really well and I was able to set Eclipse to use their file paths. How should I install JDK6, as it should be installed to program files and found automatically by Eclipse? I can't find any setting for it.

    Some of my @Override functions give the error "must override a superclass method", which apparently is because of the default JDK5, but how can I set Eclipse to use the version 6 instead? My JRE is set to use the version 6.