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!!

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?

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.

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!