• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting syntax error when running Java database code in Netbeans  RSS feed

 
April Rain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When running my Java code to create a database with one table in Netbeans I get the following error message: ERROR: Syntax error: Encountered "(" at line 1, column 55. I cannot for the life of me figure out exactly where the error is in my code in order to fix it. My Java code for the database is below. Any help here is greatly appreciated and thank you in advance.
package charitydatabase;
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
In future, while posting code, please UseCodeTags. I have added them this time for you. As you can see the tags make the code much more easier to read and understand
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot find any missing brace or bracket. Can you copy paste the exact error message?
 
April Rain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:I cannot find any missing brace or bracket. Can you copy paste the exact error message?

This is the error message--> ERROR: Syntax error: Encountered "(" at line 1, column 55.
 
April Rain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
April Rain wrote:
Maneesh Godbole wrote:I cannot find any missing brace or bracket. Can you copy paste the exact error message?

This is the error message--> ERROR: Syntax error: Encountered "(" at line 1, column 55.

I found the problem that was causing the syntax error, but now I can't remember exactly where I made the fix. I am also having a hard time understanding exception handling and such and am not quite sure what to do with lines 48-65 in my code. These lines of code were auto-generated in Netbeans and if you can help with this I would greatly appreciate it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!