Configuration Setup

This version of LexAccess Java, UTF-8 provides users choices of different set up options through the configuration file. The default configuration file is $LA_DIR/data/config/lexAccess.properties. The variables used in the configuration file are listed in the following table. "Relative path" refers to the path relative to $LA_DIR.

I. Configuration variables

Variable NamesExplanations Variable Values (Default)
Directories and files
LA_DIR the absolute path of the LexAccess tool directory
  • /Projects/LexAccess/LexAccess2023/
  • d:/Projects/LexAccess/LexAccess2023/
DB_DIRthe relative path of HSql database directory
  • HSqlDb/
FIRST_VERSIONthe first lexAccess version released in Java
  • 2003
LATEST_VERSIONthe latest lexAccess version
  • 2023
DB_TYPEDatabase to use in LexAccess
  • org.hsqldb.jdbcDrive
  • org.apache.derby.jdbc.EmbeddedDriver
  • com.mysql.jdbc.Driver
DB_NAMEdatabase name for LexAccess
  • lexAccess2023
DB_HOSTHostname of database
  • null (HSqlDb, JavaDb)
  • localhost (mySql)
DB_USERNAMEuser name for using the LexAccess database
  • sa (HSqlDb)
  • lexAccess (mySql)
DB_PASSWORDlexAccess user password
  • lexAccess (mySql)
JDBC_URLJDBC URL and connecting string
  • jdbc:hsqldb:${LA_DIR}/data/HSqlDb/lexAccess2023
  • jdbc:derby:lexAccess2023
  • jdbc:mysql://localhost/lexAccess2023
Other Variables
NO_OUTPUTa string indicating no output
  • -No Record Found-
TEXT_INDENTindent in text output format
  • \t
XML_INDENTindent in Xml output format
  • "  "
XML_HEADERXml header in Xml output format
  • <?xml version="1.0" encoding="UTF-8"?>

II. Syntax

  • # -- comment lines begin with "#".
  • variable=value: set variable to value

III. File Location

  • default: data/config/lexAccess.properties
  • may be specified by option -x:file_absolute_path

Notes: The lexAccess installation program generates data/config/lexAccess.properties automatically (from data/config/lexAccess.properties.TEMPLATE) according to options users chose during the installation.