[email protected] wrote: > In the embedded mode, can relative path be used in the connection URL ? > > I think, for example, such as 'jdbc:derby:c:/derby1021/vsjdb' is not good. > > Can it be changed to relative path ? thank you``
Yes, you can use relative paths in embedded mode. For example, if you change it to 'jdbc:derby:vsjdb' Derby will look for a database called "vsjdb" within either the directory from which you started your embedding application (same as the Java "user.dir" property) (default) or the directory specified by the property derby.system.home, if set. See also http://wiki.apache.org/db-derby/DatabaseNamesRelativeAbsolute and http://db.apache.org/derby/docs/10.4/devguide/cdevdvlp34964.html ("Connecting to databases") -- John
