Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting java application to JAVADB database

 
aditya vikram singh
Greenhorn
Posts: 6
Android Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys this is my project and i am not able to connect with database i am using...JAVA DB....PLEASE help me out ...i am not able to save any data to database or update or delete....if any body is having idea about this error tell me how to fix it..and if any error is there please post me with corrected code...please i need help....thank you guys...i have attched the file naming java code ..

 
Ashwin Sridhar
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats the exception that you are getting. post the stack trace.
 
aditya vikram singh
Greenhorn
Posts: 6
Android Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IS THERE ANY ERROR IN WRITING CODE FOR CONNECTING TO JAVA DB..IF THERE PLEASE LET ME KNW THE CORRRECTION..IN


S1.JPG
[Thumbnail for S1.JPG]
error 1 that is occuring
S2.JPG
[Thumbnail for S2.JPG]
error 2 that is occuring
 
Paul Clapham
Sheriff
Posts: 21149
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You made me open a stupid image just to read a single error message? Don't you have any consideration? Just copy and paste error messages the next time.

As for the so-called error message, it's just telling you that you haven't written any Javadoc for the method. You don't have to write Javadoc for the method. But if those warning messages confuse you, then just write the Javadoc and carry on with your work.
 
aditya vikram singh
Greenhorn
Posts: 6
Android Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WHAT ABOUT DATBASE IS THERE ANY ERROR..IN CODE..ANY WHY THIS CODE IS NOT GETTING CONNECTED TO DATABASE I HAVE GIVEN URL,DRIVER NAME AND ALL....

DO I NEED TO WRITE JAVA DOC..IS IT NECESSARY...??

what does this error says ....
S3.JPG
[Thumbnail for S3.JPG]
 
Rob Spoor
Sheriff
Pie
Posts: 20552
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please KeepItDown. There's no need to use only uppercase letters.

Your problem from the screen shot is the class name. You think that the class name is "SailsManager", but it's "sails.manager.SailsManager" - the package is part of the class name.
 
aditya vikram singh
Greenhorn
Posts: 6
Android Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but how a class name can be sails.manager.sailsmanger. it can't be there will be no dot-operartor in between..it will be wrong class name...if i give also it will just take sails as my class name not the whole class name as you suggested..please refer to my code is there any problem there beacuse i have tried hell lot things but nothing is working out
 
Rob Spoor
Sheriff
Pie
Posts: 20552
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've put the class in a package called sails.manager; that's where that part of the name comes from.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic