⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conf.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: conf.so,v 10.30 2005/12/01 03:18:51 bostic Exp $])m4_ref_title(Java API,    Java configuration, @Java configuration, am_misc/faq, java/compat)m4_p([dnlBuilding the m4_db java classes, the examples and the native supportlibrary is integrated into the normal build process.  Seem4_linkpage(M4RELDIR/ref/build_unix/conf, --enable-java, [Configuringm4_db]) and m4_link(M4RELDIR/ref/build_win/intro, [Building for Windows])for more information.])m4_p([dnlWe expect that you already installed the Java JDK or equivalent on yoursystem.  For the sake of discussion, we assume that it is in a directorycalled db-VERSION; for example, you downloaded a m4_db archive, and youdid not change the top-level directory name.  The files related to Javaare in three subdirectories of db-VERSION: java (the java source files),libdb_java (the C++ files that provide the "glue" between java andm4_db) and examples_java (containing all examples code).  The directorytree looks like this:])m4_indent([dnldb-VERSION|-- java|   `-- src|       `-- com|           `-- sleepycat|               |-- bdb|               |   |-- ...|               |   |-- bind|               |   |   `-- ...|               |   `-- util|               |       `-- ...|               `-- db|-- examples_java|   `-- src|       `-- com|           `-- sleepycat|               `-- examples|                   |-- bdb|                   |   `-- ...|                   `-- db|                       `-- ...`-- libdb_java    `-- ...])m4_p([dnlThis naming conforms to the de facto standard for naming java packages.When the java code is built, it is placed into two jar files:m4_path(db.jar), containing the db package,and m4_path(dbexamples.jar), containing the examples.])m4_p([dnlFor your application to use m4_db successfully, you must set yourm4_envvar(CLASSPATH) environment variable to include the full pathname ofthe db jar files as well as the classes in your java distribution.On UNIX, m4_envvar(CLASSPATH) is a colon-separatedlist of directories and jar files;on Windows, it is separated by semicolons.On UNIX, the jar files are put in your build directory, and whenyou do the make install step, they are copied to the lib directoryof your installation tree.  On Windows, the jar files are placedin the Release or Debug subdirectory with your other objects.])m4_p([dnlThe m4_db Java classes are mostly implemented in nativemethods. Before you can use them, you need to make sure that theDLL or shared library containing the native methods can be foundby your Java runtime.  On Windows, you should set your PATH variableto include:])m4_indent(m4_path([db-VERSION\build_windows\Release]))m4_p([dnlOn UNIX, you should set them4_envvar(LD_LIBRARY_PATH) environment variable or local equivalentto include the m4_db library installation directory. Of course, thestandard install directory may have been changed for your site; see yoursystem administrator for details.])m4_p([dnlOn other platforms, the path can be set on the command line as follows(assuming the shared library is in m4_path(/usr/local/BerkeleyDB/lib):)])m4_indent([% java -Djava.library.path=/usr/local/BerkeleyDB/lib ...])m4_p([dnlRegardless, if you get the following exception when you run, youprobably do not have the library search path configured correctly:])m4_indent([java.lang.UnsatisfiedLinkError])m4_p([dnlDifferent Java interpreters provide different error messages if them4_envvar(CLASSPATH) value is incorrect, a typical error is the following:])m4_indent([java.lang.NoClassDefFoundError])m4_p([dnlTo ensure that everything is running correctly, you may want to try asimple test from the example programs in])m4_indent(m4_path([db-VERSION/examples_java/src/db]))m4_p([dnlFor example, the following sample program will prompt for text inputlines, which are then stored in a Btree database named m4_path(access.db) inyour current directory:])m4_indent([% java db.AccessExample])m4_p([dnlTry giving it a few lines of input text and then end-of-file.  Beforeit exits, you should see a list of the lines you entered display withdata items.  This is a simple check to make sure the fundamentalconfiguration is working correctly.])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -