Go to Post Please teams I implore you obey the no saving seats rule. Or at least be very friendly in inviting people to sit with you. - IndySam [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2017, 08:05
UberMathNerd UberMathNerd is offline
Registered User
FRC #5407 (Wolf Pack Robotics 5407)
Team Role: Coach
 
Join Date: Jan 2017
Rookie Year: 2016
Location: AIM Academy
Posts: 7
UberMathNerd is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2017, 09:02
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 990
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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).
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2017, 09:43
UberMathNerd UberMathNerd is offline
Registered User
FRC #5407 (Wolf Pack Robotics 5407)
Team Role: Coach
 
Join Date: Jan 2017
Rookie Year: 2016
Location: AIM Academy
Posts: 7
UberMathNerd is an unknown quantity at this point
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

Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2017, 12:20
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 144
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
Re: Example Code Error - Getting Started

Quote:
Originally Posted by UberMathNerd View Post
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?
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2017, 16:51
UberMathNerd UberMathNerd is offline
Registered User
FRC #5407 (Wolf Pack Robotics 5407)
Team Role: Coach
 
Join Date: Jan 2017
Rookie Year: 2016
Location: AIM Academy
Posts: 7
UberMathNerd is an unknown quantity at this point
Re: Example Code Error - Getting Started

Does that work?

https://s30.postimg.org/ozrm23n1d/Sc...9_40_47_AM.png
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2017, 16:52
UberMathNerd UberMathNerd is offline
Registered User
FRC #5407 (Wolf Pack Robotics 5407)
Team Role: Coach
 
Join Date: Jan 2017
Rookie Year: 2016
Location: AIM Academy
Posts: 7
UberMathNerd is an unknown quantity at this point
Re: Example Code Error - Getting Started

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


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi