Go to Post We make ourselves better by lifting others and standing on their shoulders, not by knocking them down. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2013, 16:43
stephmak stephmak is offline
High King of Code--Lead Programmer
FRC #4621
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Georgia
Posts: 15
stephmak is an unknown quantity at this point
Question NetBeans Java code compile problems

Hello everyone,

I was attempting to clean and build our robot code in Netbeans, but it failed to build and gave me an error on this line: "package org.usfirst.frc4621.4621Rev1_1;". I am no strager to Java, so I double-checked it for errors and found none. One of my team members said that he had seen a discussion about the problem and how to fix it here on Chief Delphi but I searched and was unable to find any mention of it here.

Can anyone give me some help?
Thanks!!
__________________
FTC
2011-2012 Bowled Over: Team #5165 Star Cygnus X-1

FRC
2013-2014 Ultimate Ascent: Team #4621 Yotta Robota
  #2   Spotlight this post!  
Unread 18-01-2013, 16:52
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: NetBeans Java code compile problems

Can we have a full error message or better description of the problem if you can?

It sounds like you either have your project configured incorrectly or the package is misspelled in the class file?
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
  #3   Spotlight this post!  
Unread 18-01-2013, 16:53
Johnbot's Avatar
Johnbot Johnbot is offline
Es Brokein!
AKA: John Westhoff
FRC #4791 (Pandroids)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Horsham, PA
Posts: 92
Johnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really nice
Re: NetBeans Java code compile problems

Quote:
Originally Posted by stephmak View Post
Hello everyone,

I was attempting to clean and build our robot code in Netbeans, but it failed to build and gave me an error on this line: "package org.usfirst.frc4621.4621Rev1_1;". I am no strager to Java, so I double-checked it for errors and found none. One of my team members said that he had seen a discussion about the problem and how to fix it here on Chief Delphi but I searched and was unable to find any mention of it here.

Can anyone give me some help?
Thanks!!
Your package, org.usfirst.frc4621.4621Rev1_1, has an invalid name.
You can't have part of a package name start with a number, it must start with a letter or underscore. Just refactor/rename your package to start the bolded part of your package name to not start with a number.
__________________

2011-2014 - FRC 2607 - Student
2012-2012 - FLL 2249 - Coach
2015- ???? - FRC 4791 - Mentor

Last edited by Johnbot : 18-01-2013 at 16:59.
  #4   Spotlight this post!  
Unread 18-01-2013, 17:00
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: NetBeans Java code compile problems

Thanks for seeing that ^^^ didn't even consider that.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
  #5   Spotlight this post!  
Unread 18-01-2013, 17:30
stephmak stephmak is offline
High King of Code--Lead Programmer
FRC #4621
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Georgia
Posts: 15
stephmak is an unknown quantity at this point
Re: NetBeans Java code compile problems

Quote:
Originally Posted by Team3266Spencer View Post
Can we have a full error message or better description of the problem if you can?

It sounds like you either have your project configured incorrectly or the package is misspelled in the class file?
Quote:
Originally Posted by Johnbot View Post
Your package, org.usfirst.frc4621.4621Rev1_1, has an invalid name.
You can't have part of a package name start with a number, it must start with a letter or underscore. Just refactor/rename your package to start the bolded part of your package name to not start with a number.
Quote:
Originally Posted by Team3266Spencer View Post
Thanks for seeing that ^^^ didn't even consider that.
Thank you both of you for replying and helping me.

I apoligize for not being more informative in my reply, but I did not want to flood the post with information and make it confusing. I am using the RobotBuilder application that generates Java code--though the line that caused the error code was not part of that generated code.

Thanks to you guys helping me catch that minor error, my code cleaned perfectly--no errors.

Thanks!
__________________
FTC
2011-2012 Bowled Over: Team #5165 Star Cygnus X-1

FRC
2013-2014 Ultimate Ascent: Team #4621 Yotta Robota
Closed Thread


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 02:27.

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