JChem simple_db_search Example

The example can be found in the <JChem home>/examples/simple_db_search directory.

Steps of installation:

  1. Make sure that all required software pieces to run JSP scripts using JChem Class Library are installed. Check if JSP scripts can be run.

    If you don not have an existing JSP capable web server, we recommend installing Apache Tomcat.

  2. Include all jar files located in <JChem home>\lib\ and the jar or zip file containing the JDBC driver in the classpath of the servlet server.
    Note : This is not the same as the system classpath.
    Tomcat instructions

    Don't forget to update these files whenever you install a new version of JChem.

  3. Create a web application for JChem.
    Tomcat instructions

  4. Initialize a database for structure handling using JChemManager.

  5. Create a table called editexample using JChemManager.

  6. Import an SD file containing chemical structures into the new table.

  7. When the example system is set up, you have to edit the following file: <JChem's URL>/examples/simple_db_search/init.jsp into your browser.

    You can alter the following settings here:

    Modify the values of the predefined constants if it is required.

    * The property table name is

  8. If you receive the message "Error: Maximum number of searches allowed per minute is exceeded. Please try it later", then please for a license key that allows more frequent searching.

  9. Please note that some less sophisticated databases like MS Access don't support parallel update or insert operations.

If you have any problem concerning the installation of the example, visit our forum or .

 
Copyright © 1999-2007 ChemAxon Ltd.    All rights reserved.