Main document: There are only three pbclient.jar, pbembedded.jar and pbtools.jar
Set the PointBase environment variable:
Setpbenv.bat
Set PB_HOME = D: / devs / PointBase
SET OLDCP =% classpath%
Set classpath =% PB_HOME% / lib / pbclient.jar
Set classpath =% classpath%;% PB_HOME% / lib / pbembedded.jar
Set classpath =% classpath%;% PB_HOME% / lib / PBTOOLS.jar
Set classpath =% classpath%;% OLDCP%
Start PointBase Server:
Java com.pointbase.net.netServer
parameter:
/ Win: Window mode startup
/ D: 0-3 JDBC display information detail. 3 is the most detailed
/ dataBase: Open the specified database
/ port: the port of listening
/ file: Specify file of log information
/PointBase.ini="path ": Specify the path to the PointBase.ini file
/ HELP: Help Information
Example: StartServer.bat
Call setpbenv.bat
Java com.pointbase.net.netServer / Port: 9999 / D: 3
PointBase Tool:
PointBase Commander: A command line tool, you can use it to complete database tasks, such as building forms and running SQL scripts.
PointBase Console: A UI tool, use it to complete:
1 Create a new database
2 EXECUTE, Debug, DISPLAY SQL Command
3 Create text filter from the database
4 Show the result of the select command
5 import export data
You must first run the PointBase Server to run the above two tools.
The operation of the two tools is similar, write two scripts:
STARTCONSOLE.BAT:
Call setpbenv.bat
Java -ddatabase.home = "% PB_HOME% / Databases" -dpointbase.ini = "% PB_HOME% / Databases / PointBase.ini" com.pointbase.tools.toolsconsole
StartCommander.bat
Call setpbenv.bat
Java -ddatabase.home = "% PB_HOME% / Databases" -dpointbase.ini = "% PB_HOME% / DatabaseS / PointBase.ini" com.pointbase.tools.toolscommander
Additional description: PointBase.ini Some of the initial settings of the database. Can not be used in some test examples
Specific use is quite simple. Don't say it.