this is the continuation of my previous question How to configure javadb in eclipse?. I was able to made some changes on my code but now it is giving me this error ->
I had been trying with your current code and found that the exception happens when the server is not being started. The way to solve this is start the server in a simple way:
Go to the lib folder in the extracted folder of derby server download over command prompt. For me it was as follows:
C:\>cd opt\db-derby-10.11.1.1-lib\lib
C:\opt\db-derby-10.11.1.1-lib\lib>java -jar derbyrun.jar server start
Sat Oct 03 16:26:29 IST 2015 : Security manager installed using the Basic server security policy.
Sat Oct 03 16:26:29 IST 2015 : Apache Derby Network Server - 10.11.1.1 - (1616546) started and ready to accept connections on port 1527
There is a different way by which you can start the server in Eclipse. You would need to install plugin and then start the server. The following references should help you:
Derby Plugin How To
Getting Started with Derby Plugin for Eclipse