Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Example Code Error - Getting Started (http://www.chiefdelphi.com/forums/showthread.php?t=153437)

UberMathNerd 11-01-2017 08:05

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

RufflesRidge 11-01-2017 09:02

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).

UberMathNerd 11-01-2017 09:43

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


AustinShalit 11-01-2017 12:20

Re: Example Code Error - Getting Started
 
Quote:

Originally Posted by UberMathNerd (Post 1629166)
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?

UberMathNerd 11-01-2017 16:51

Re: Example Code Error - Getting Started
 
Does that work?

https://s30.postimg.org/ozrm23n1d/Sc...9_40_47_AM.png

UberMathNerd 11-01-2017 16:52

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