aspose file tools*
The moose likes JDBC and the fly likes connecting java application to JAVADB database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connecting java application to JAVADB database" Watch "connecting java application to JAVADB database" New topic
Author

connecting java application to JAVADB database

aditya vikram singh
Greenhorn

Joined: Jan 02, 2012
Posts: 6

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

Joined: Jul 09, 2011
Posts: 272

whats the exception that you are getting. post the stack trace.


Ashwin Sridhar
SCJP | SCWCD | OCA
aditya vikram singh
Greenhorn

Joined: Jan 02, 2012
Posts: 6

IS THERE ANY ERROR IN WRITING CODE FOR CONNECTING TO JAVA DB..IF THERE PLEASE LET ME KNW THE CORRRECTION..IN





[Thumbnail for S1.JPG]


[Thumbnail for S2.JPG]

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

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

Joined: Jan 02, 2012
Posts: 6

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


[Thumbnail for S3.JPG]

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19784
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
aditya vikram singh
Greenhorn

Joined: Jan 02, 2012
Posts: 6

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

Joined: Oct 27, 2005
Posts: 19784
    
  20

You've put the class in a package called sails.manager; that's where that part of the name comes from.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connecting java application to JAVADB database