Example Code Error - Getting Started

I’m a new coach. I am using Java through Eclipse and I tried to load the first example program called “Getting Started” but

  1. the first line “package org.usfirst.frc.team5407.robot;” comes up with an error “The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files”

  2. and the class declaration “public class Robot extends IterativeRobot” gives another error “implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor”

any ideas how to fix that? I haven’t touched the code, just opened the example through file>new>project



That sounds like it may not be able to find the JDK. Make sure to check the settings described in “Setting up the JDK in eclipse (Java teams only)” on this page: https://wpilib.screenstepslive.com/s/4485/m/13809/l/599681-installing-eclipse-c-java

Specifically, note how it points to jdk for location, not JRE (even though the left column text says jre).

Thanks for the idea. I checked and it looks to me like the JKD is installed. Here is a screenshot


It looks like your image failed to upload. Can you try again?

Does that work?


Ok, an added complication. I started another project using the Ultrasonic example and that one has no errors.