Go to Post This is definitely the best FRC parody of an FRC parody I have seen. - Jared Russell [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 28-01-2016, 02:08
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
ClassNotFound exception

Having to switch between Android Studio for FTC and Eclipse for FRC is hard. I have totally forgotten every little tricks I learned about Eclipse and roboRIO from last year. We copied our RecycleRush code from last season and stripped out the game specific code leaving pretty much a running base to the FirstStronghold code base. It compiled fine but when deploy the code to a simple 4-wheel drive base, it threw a ClassNotFoundException saying it cannot find the Robot class which is the root object of the program. I suspect it has something to do with copying last year's code and missing a rename somewhere in the manifest. The only rename we did was searching for all RecycleRush and replacing with FirstStronghold which are mainly strings for debugging purposes. Does anybody know what we missed?
Code:
Unhandled exception instantiating robot org.usfirst.frc.team492.robot.Robot java.lang.ClassNotFoundException
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2016, 17:07
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 234
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: ClassNotFound exception

Can you post code? Either a github repo or your main robot class
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2016, 05:02
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: ClassNotFound exception

You can find our code here:
https://github.com/trc492/Frc2016Fir...old/src/frc492
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2016, 16:35
legts legts is offline
Autonomous Queen
FRC #2399 (The Fighting Unicorns)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Ohio
Posts: 73
legts is an unknown quantity at this point
Re: ClassNotFound exception

Is your robot class called TrcRobot? It should probably be called Robot, I think.
__________________
Programming Captain on team 2399 for the 2016 season.
Programmer on team 2399 The Fighting Unicorns since 2014!
Engineering Inspiration Award GPR 2015
Semi-finalist Buckeye 2015 (thanks 4269 and 1987!)
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2016, 10:02
java4first java4first is offline
(Java) Programming Mentor
AKA: Stu
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 2011
Location: Goffstown, NH
Posts: 56
java4first is an unknown quantity at this point
Re: ClassNotFound exception

You just need to edit the package and class name in the build.properties if you don't use the out of the box names from WPILibs wizard. We have a normal class path based on our website and call the main class Team501Robot. Every season I forget to do that the first pull, and have the same problem.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2016, 16:36
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: ClassNotFound exception

Thank you. I think that's what I am looking for. BTW anybody knows where to get the WPILib source code these days? It used to be first forge but I believe that doesn't exist any more. I also vaguely remember if I install the FRC update, the source code is zipped somewhere in some folder. But I searched all over and haven't found it yet.
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2016, 18:11
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
We distribute the code in ~/wpilib. You can also clone them directly from our repository. The ScreenSteps for that is here: https://wpilib.screenstepslive.com/s...ing-the-source.
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 09:12.

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