(no subject)
Friday, 23 September 2016 · 2 messages
TD
Tushar Deshmukh23 Sep 2016 07:53 #
Namaste All,
I want to use basex locally in Java swing project. I wanted to create database in the executable jar file's directory. Suppose my directory is on c:\tdd
My code is as below
public static void createdatabase() throw s Exception {
Context cts = new Context();
new Set(StaticOptions.DBPATH,"c:\\tdd
). execute(cts);
new CreateDB("collection"). execute(cts);
cts.close();
}I am getting an error Global option '
DBPATH' cannot be set. Please guide
As user input from GUI is getting saved in local database.
Thanks
Tushar Deshmukh.CG
Christian Grün23 Sep 2016 14:07 #
Quoted text · Tushar Deshmukh · 1 line
> I am getting an error Global option ' DBPATH' cannot be set.
For more information on how to assign global options, please check our documentation [1].
Hope this helps,
Christian
[1] http://docs.basex.org/wiki/Options
Quoted text · Tushar Deshmukh · 9 lines
> Please guide > > As user input from GUI is getting saved in local database. > > > Thanks > Tushar Deshmukh. > >
Written for BaseX 8.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery