using basex locally

Friday, 23 September 2016 · 1 message
TD
Tushar Deshmukh23 Sep 2016 07:58 #
Quoted text · Tushar Deshmukh · 1 line
On 23-Sep-2016 11:23 am, "Tushar Deshmukh" <tdlwala at gmail.com> wrote:

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.


⚡Generated with XQuery