How to set up wanted db in wanted location with derby in java?

You are almost there. First you need to load the driver, for example private static String embeddedDriver = "org.apache.derby.jdbc. EmbeddedDriver then in your main Class.

ForName(embeddedDriver).newInstance() Second you need to use a URL like this to specify a location on the file system jdbc:derby:/dir/to/create/database;create=true.

You are almost there. First you need to load the driver, for example; private static String embeddedDriver = "org.apache.derby.jdbc. EmbeddedDriver"; then in your main; Class.

ForName(embeddedDriver).newInstance(); Second you need to use a URL like this to specify a location on the file system; jdbc:derby:/dir/to/create/database;create=true.

And if you want to do it while using the client-server configuration, it's the same basic idea, but with an additional detail: you use derby.system. Home to control the network server's "home" directory, and the database connection URL to control the subdirectory location within the Derby home folder. – Bryan Pendleton May 3 at 13:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions