Java(TM) Communications API for Linux(R), Version 2.01 README


Contents

  • Overview
  • Location of Java Communications API files
  • Configuring Java Communications API
  • Changing the access mode of serial and parallel ports
  • Setting the PATH
  • Redistribution Requirements
  • Uninstalling Java Communications API
  • Uninstalling the installable RPM package
  • Uninstalling the compressed TAR package
  • Documentation
  • Notices
  • Trademarks

  • Overview

    Java Communications application programming interface (API) gives Java applications a platform-independent way of performing serial and parallel port communications for technologies such as voice mail, fax, and smartcards. After writing serial or parallel port communications for your application, you can then include those files with your application. Use Java Communications API if you want to write Java programs that access serial or parallel ports.

    Java Communications API 2.01 supports Electronic Industries Association (EIA)-232 (RS232) serial ports and Institute of Electrical and Electronics Engineers (IEEE) 1284 parallel ports and is supported on systems with the IBM(R) Developer Kit for Linux, Java 2 Technology Edition, V1.3.0 Runtime Environment. Java Communications API 2.01 is supported on the following products:

    Using Java Communications API, you can:


    Location of Java Communications API files

    The Java Communications API files are installed as shown:

    For example, if you accepted the default directory when you installed the installable RPM package, the comm.jar file is in the /opt/IBMJava2-13/jre/lib/ext directory.

    If you installed the package in another directory, the files are in the same directory structure, but /opt/IBMJava2-13 is replaced by the directory where you installed Java Communications API .


    Configuring Java Communications API

    After you install Java Communications API, you must:


    Changing the access mode of serial and parallel ports

    After you install Java Communications API, you must change the access mode of serial and parallel ports so that users can access these devices. Logged on as an administrator, use the following commands, as applicable:

        chmod 777 /dev/ttyS0    (COM1) 
        chmod 777 /dev/lp0      (parallel port)
        chmod 777 /dev/ttyS1    (COM2)
        chmod 777 /dev/ttyS2    (COM3)
        chmod 777 /dev/ttyS3    (COM4)
    
    Change the access mode of other ports as needed.

    Setting the PATH

    After you install Java Communications API, you must set the PATH.

    export PATH=/opt/IBMJava2-13/jre/bin:$PATH
    

    Redistribution Requirements

    If you plan to redistribute Java Communications API with the IBM(R) Developer Kit for Linux, Java 2 Technology Edition, V1.3.0 Runtime Environment and your product, you must package the files listed in Location of Java Communications API files. The files must be included as part of your product installation and placed in the appropriate subdirectories on the user's system.


    Uninstalling Java Communications API

    The process you use to remove Java Communications API depends on whether you installed the installable RPM package or the compressed TAR package. See Uninstalling the installable RPM package or Uninstalling the compressed TAR package for instructions.


    Uninstalling the installable RPM package

    To uninstall Java Communications API if you installed the installable RPM package, use the rpm command, as follows:

    1. At a shell script, type the following:
          rpm -qa | grep IBM
      
      The names of the installed packages are displayed.
    2. Use the rpm command, as follows:
          rpm -e pkgname
      
      where pkgname is the name of the Java Communications API package that was displayed.
    3. Modify your shell script. Remove the /opt/IBMJava2-13/jre/bin directory from your PATH statement.

    Uninstalling the compressed TAR package

    To uninstall Java Communications API, delete the following files from the directory where you installed them:


    Documentation

    API documentation and samples for Java Communications API might be found at the Sun Web site:

    Click Products & APIs and look under Optional Packages.


    Notices

    This edition applies to Java Communications API for Linux and to all subsequent releases and modifications until otherwise indicated in new editions.

    Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

    Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the users responsibility to evaluate and verify the operation of any non-IBM product, program, or service.

    IBM may have patents or pending patent applications covering subject matter in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to:

    For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to:

    The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law:

    INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you.

    This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the information. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this information at any time without notice.

    Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk.

    IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you.

    Licensees of this program who wish to have information about it for the purpose of enabling (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact:

    Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee.

    The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equivalent agreement between us.

    Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment.

    Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.


    Trademarks

    IBM is a trademark of International Business Machines Corporation in the U.S., or other countries, or both:

    Java is a trademark of Sun Microsystems, Inc. in the U.S. and other countries. The Java technology is owned and exclusively licensed by Sun Microsystems, Inc.

    Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both.

    Other company, product, and service names may be trademarks or service marks of others.

    Copyright (c) 1997, 1999 Sun Microsystems, Inc.

    901 San Antonio Rd., Palo Alto, CA 94303 USA.

    All rights reserved.

    (c) Copyright IBM Corporation, 2000. All rights reserved.