• Post Reply Bookmark Topic Watch Topic
  • New Topic

static messaging queue problem  RSS feed

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is wrong with this piece of code?


 
Saloon Keeper
Posts: 3329
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you getting some sort of error? If so, please post the entire error message.
 
Ted Gress
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my error:


Description Resource Path Location Type
Syntax error on token "}", ; expected MessageManager.java /necrotek3d_v/src/MessageManagement line 69 Java Problem
Syntax error on token "static", interface expected after this token MessageManager.java /necrotek3d_v/src/MessageManagement line 64 Java Problem
Syntax error on token "void", @ expected MessageManager.java /necrotek3d_v/src/MessageManagement line 66 Java Problem
Syntax error on token(s), misplaced construct(s) MessageManager.java /necrotek3d_v/src/MessageManagement line 66 Java Problem
Syntax error on tokens, delete these tokens MessageManager.java /necrotek3d_v/src/MessageManagement line 64 Java Problem
Syntax error on tokens, InterfaceHeaderName expected instead MessageManager.java /necrotek3d_v/src/MessageManagement line 64 Java Problem
Syntax error, insert "enum Identifier" to complete EnumHeader MessageManager.java /necrotek3d_v/src/MessageManagement line 66 Java Problem
 
Carey Brown
Saloon Keeper
Posts: 3329
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that all of the code? What you've shown needs to be enclosed in a class definition.
 
Saloon Keeper
Posts: 7993
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That typically happens when your braces don't match.

Line up all the braces in your class, and add or remove braces so every scope is properly enclosed.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!