Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with a derby embedded database

 
monisha kasturi
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all


I do not want to install a database server on target machine. It is possible that we can simply ship a jar file with the database embedded in it(derby database), and not worry about installing a database server separately? I created one application in netbeans using derby and it is working fine in my pc until netbeans remain open and connection is opened but as i make a jar close the netbeans ide.,it is not be able to connect to database.because server was not working it is not started. in other machines also it is not working the reason is same,how should i start the server by my code .stuck in this sitaution very badly. when i am running on other machine it is giving me an Exception .My code is


For connection i wrote this code
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And which exception(s) do you get?
 
monisha kasturi
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir this is the error,
Exception in thread "DRDAConnThread_2" java.lang.NoSuchMethodError:


Is there anymethod by which the server derby database which is embedded into my application will automatically starts as user double click on .exe.
Thanks in advance
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
monisha kasturi wrote:Exception in thread "DRDAConnThread_2" java.lang.NoSuchMethodError:

Please provide the complete stack trace as this exception is only providing very limited information
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
monisha kasturi wrote:Is there anymethod by which the server derby database which is embedded into my application will automatically starts as user double click on .exe.

According to this article you should use the embedded driver to use derby as an embedded database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic