Problem with building Bluetooth project

I get this error when I try and build my project.

C:\School\Year4\Tech Project\Programs\Bluetooth\ constant expression required
            case SERVER_PORT: {
1 error
Error!: Error: java compiler failed: javac -source 1.3 -target 1.1 -g -O -d C:\DOCUME~1\Chris\LOCALS~1\Temp\rapc_53dd4af3.dir -bootclass ...

I can't figure out what it means. I even re wrote it to match a smaple from that comes with JDE 4.1

This is the code that has the error:

            case SERVER_PORT: {
                //Push a new SPPScreen onto the display stack and pop the existing menu
                pushScreen( new SPPScreen(null) );
                if( cookie instanceof Runnable ) {

How can I fix this problem?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This is a requirement for the switch statement ~ it's a complicated explanation why (see the JLS, it goes into great detail with this scenario).
In short, for this to work correctly, somewhere in your code, you need to have:
final static int SERVER_PORT = 80;  // or whatever server port you need to refer to.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TheMeeserAuthor Commented:
Thank you. I did not realize that the SERVER_PORT had to have final in it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
BlackBerry Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.