![]() |
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 |
Re: Example Code Error - Getting Started
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...eclipse-c-java
Specifically, note how it points to jdk for location, not JRE (even though the left column text says jre). |
Re: Example Code Error - Getting Started
Thanks for the idea. I checked and it looks to me like the JKD is installed. Here is a screenshot
|
Re: Example Code Error - Getting Started
Quote:
|
Re: Example Code Error - Getting Started
|
Re: Example Code Error - Getting Started
Ok, an added complication. I started another project using the Ultrasonic example and that one has no errors.
|
| All times are GMT -5. The time now is 12:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi