Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   NetBeans Java code compile problems (http://www.chiefdelphi.com/forums/showthread.php?t=111543)

stephmak 18-01-2013 16:43

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

Team3266Spencer 18-01-2013 16:52

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?

Johnbot 18-01-2013 16:53

Re: NetBeans Java code compile problems
 
Quote:

Originally Posted by stephmak (Post 1218107)
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.

Team3266Spencer 18-01-2013 17:00

Re: NetBeans Java code compile problems
 
Thanks for seeing that ^^^ didn't even consider that.

stephmak 18-01-2013 17:30

Re: NetBeans Java code compile problems
 
Quote:

Originally Posted by Team3266Spencer (Post 1218109)
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 (Post 1218111)
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 (Post 1218115)
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!


All times are GMT -5. The time now is 02:13.

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