Mobile Information Device Profile Build Configuration


This section describes the hardware and software requirements for the MIDP build environment and its setup procedures. See Compiling MIDP for a description of how to use the MIDP build environment. See Running MIDP for a description of the configuration parameters that may be set to effect the behavior of the MIDP runtime execution environment.

Microsoft Windows 2000

Hardware Requirements

  • Pentium II-based PC
  • 128 MB memory
  • 100MB free disk space

Software Requirements

  • Java Development Kit (JDK), version 1.3
  • Microsoft Windows 2000

    All current critical updates must be installed (use the system's "Windows Update" feature).

    Note: The MIDP build environment requires a development system with a system locale based on the ISO 8859-1 (Latin-1) character set.

  • Microsoft Visual C++, version 6.0
  • MKS Toolkit, version 6.1
  • GNU Make, version 3.78.1
  • Zip utility
  • CLDC version 1.0.3

    This must be installed into a directory named kvm, and installed on the same level as the MIDP distribution. For example, if MIDP is being installed in the directory d:\my_development\midp\, CLDC must be installed into a directory named d:\my_development\kvm\ or MIDP should be compiled with the following flag KVM_DIR="location of CLDC workspace". See Compiling MIDP for a description of build options that can be set.

Software Setup

The procedure for setting up the MIDP build environment under Microsoft Windows 2000 has three steps. Some of these steps can be condensed into a batch file or added to autoexec.bat.

To set up the MIDP build environment under Microsoft Windows 2000:

  1. Run the VCVARS32.BAT script to configure the environment variables for Visual C++.
    % vcvars32 x86

    This script defines the INCLUDE, LIB and PATH environment variables for use with the makefiles and scripts in the MIDP build environment.

  2. Make sure the PATH environment variable includes the directory containing the MKS Toolkit executables. Note that the MIDP also uses the PATH environment variable to search for DLLs that contain implementations of native methods.
  3. % set PATH=C:\Program Files\MKS\bin;%PATH%

Solaris

Hardware Requirements

  • Ultra-1 workstation
  • 128 MB memory
  • 200 MB swap
  • 100M MB free disk space

Software Requirements

  • Java Development Kit (JDK), version 1.3
  • Solaris operating environment, version 2.5 or later, SPARC release
  • CLDC version 1.0.3
  • This must be installed into a directory named kvm, and installed on the same level as the MIDP distribution. For example, if MIDP is being installed in the directory ~/my_development/midp/, CLDC must be installed into a directory named ~/my_development/kvm/ or midp should be compiled with the following flag KVM_DIR="location of CLDC workspace" .

  • Solaris software packages
  • Software Package Description
    SUNWcsu Core operating system software
    SUNWbtool Software development utilities
    SUNWtool Programming tools
    SUNWsprot Solaris bundled tools (this package's compiler is used to build the Reference Implementation)

    Note: Use the following command to verify whether a given Solaris software package has been installed:

    % pkginfo -l "package-name"
  • GNU tools
    • GNU Make, version 3.74
  • Zip utility

Software Setup

The MIDP build environment and the JDK use the environment variables described in the table below. Some of these environment variables can cause name conflicts and should be defined correctly so that they do not include directories for JDK versions that are not compatible with the MIDP build environment.

Environment Variables
Variable Description
LANG The system locale
CLASSPATH The search path used by the Java virtual machine to find class files
LD_LIBRARY_PATH The search path for finding shared libraries that contain the implementations of native methods

To set up the MIDP build environment on a Solaris system:

  • Define the PATH variable so that it includes the directories with the appropriate tools (the JDK, ZIP tools, GCC, and Solaris programming tools).

Linux

Hardware Requirements

  • Pentium-II based PC
  • 128 MB memory
  • 200 MB swap
  • 100 MB free disk space

Software Requirements

  • Java Development Kit (JDK), version 1.3
  • Red Hat Linux distribution, version 6.2, x86 release
  • CLDC version 1.0.3
  • This must be installed into a directory named kvm, and installed on the same level as the MIDP distribution. For example, if MIDP is being installed in the directory ~/my_development/midp/, CLDC must be installed into a directory named ~/my_development/kvm/ or midp should be compiled with the following flag KVM_DIR="location of CLDC workspace" .

  • Linux software packages

    All listed software packages come with the standard Red Hat 6.2 Linux distribution. No additional updates are required.

    Software Package Description
    egcs-2.91.66 core gcc compiler
    make-3.78.1-4 GNU make utility
    zip-2.3-4 ZIP file extraction tool

    Note: Use the following command to verify whether a given Linux software package has been installed:

    % rpm -q "package-name"

    Software Setup

    To set up the MIDP build environment on a Linux system:

    • Define the PATH variable so that it includes the directories with the appropriate tools (the JDK, ZIP tools, GCC, and Linux programming tools).
    • Define the ALT_BOOTDIR variable so that it points to the directory that contains the JDK 1.3.


Copyright 2001 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. This product is distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Sun, Sun Microsystems, the Sun Logo, Java, and the Java Coffee Cup Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Federal Acquisitions: Commercial Software -- Government Users Subject to Standard License Terms and Conditions. DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.