Example Code Error - Getting Started

Hey,
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

thanks!

-Jordan

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

https://lh3.googleusercontent.com/VOS64nI4hVO6wmUQfBPIJS9pbn66LVCrfgTDWqX6FgkbhcxS0QCm00Jtx-_sfQrtGbGFT5NQf8Tpjjnvnyu3ujNFAbAwQwUh=w1280-h800-rw-no

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

Does that work?

https://s30.postimg.org/ozrm23n1d/Screen_Shot_2017_01_11_at_9_40_47_AM.png

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