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