SunJavaSolarisCommunitiesMy SDN AccountJoin SDN


Java™ DB Installation

System Requirements

Java™ DB is supported on the Solaris, Linux and Windows operating systems and Sun Java 1.4 or later.

Install Formats

This version of Java DB is distributed as A basic platform independent zip archive is also available.
Note: For any text on this page containing the notations <version> or <arch>, you must substitute the appropriate Java DB version (in the forms 10_4_1_3 or 10.4.1.3) or system architecture (sparc or i386 for the SPARC and x86 architectures, respectively). For example, the file name javadb-<version>-solaris-<arch>.sh could be javadb-10_4_1_3-solaris-sparc.sh.

System Packages

Installation of Solaris SVR4 and Linux RPM packages requires system privileges (root user, or equivalent). Other users can use the self-extracting binaries to install Java DB.

Solaris

  1. Download javadb-<version>-solaris-<arch>-pkg.sh.

  2. Make sure that execute permissions are set on the file:
    chmod +x javadb-<version>-solaris-<arch>-pkg.sh
  3. Extract the Java DB SVR4 packages:
    ./javadb-<version>-solaris-<arch>-pkg.sh
    This will create a directory javadb-<version> containing several SVR4 package directories SUNWjavadb-common, SUNWjavadb-client, SUNWjavadb-core, SUNWjavadb-demo, SUNWjavadb-docs, SUNWjavadb-javadoc, SUNWjavadb-service.

  4. Become root by running su and entering the super-user password.

  5. Uninstall an earlier Java DB installation:

    If your system has an existing Java DB installation (the default install location is /opt/SUNWjavadb), you must remove it before installing the new version. You can list the installed Java DB packages by running

    pkginfo | grep SUNWjavadb-
    Remove the installed packages by running
    pkgrm SUNWjavadb-client SUNWjavadb-core SUNWjavadb-demo SUNWjavadb-docs SUNWjavadb-javadoc SUNWjavadb-service SUNWjavadb-common
  6. Install the new Java DB packages:

    cd javadb-<version>
    pkgadd -d . SUNWjavadb-common SUNWjavadb-client SUNWjavadb-core SUNWjavadb-demo SUNWjavadb-docs SUNWjavadb-javadoc SUNWjavadb-service
See the pkgadd and admin(4) man pages for more information on installing Solaris packages. Use pkgrm as described above to uninstall Java DB.

Linux

  1. Download javadb-<version>-linux-rpm.bin.

  2. Make sure that execute permissions are set on the file:
    chmod +x javadb-<version>-linux-rpm.bin
  3. Extract the Java DB RPM packages:
    ./javadb-<version>-linux-rpm.bin
    This will create a directory javadb-<version> containing several RPM packages sun-javadb-*.i386.rpm.

  4. Become root by running su and entering the super-user password.

  5. Uninstall an earlier Java DB installation:

    If your system has an existing Java DB installation (the default install location is /opt/sun/javadb), you must remove it before installing the new version. You can list installed Java DB packages by running

    rpm -qa | grep sun-javadb-
    Remove the installed packages by running
    rpm -ev sun-javadb-common sun-javadb-client sun-javadb-core sun-javadb-demo sun-javadb-docs sun-javadb-javadoc
  6. Install the new Java DB packages:

    cd javadb-<version>
    rpm -ivh sun-javadb-*.rpm
See the rpm man page for more information on installing RPM packages. Use rpm -ev as described above to uninstall Java DB.

Self-Extracting Binaries

The self-extracting binaries will when run extract a fully populated javadb directory tree under the current directory. Any user with write privileges in the current directory can use this method to install Java DB into for example their home directory.

Solaris

  1. Download javadb-<version>-solaris-<arch>.sh.

  2. Make sure that execute permissions are set on the file:
    chmod +x javadb-<version>-solaris-<arch>.sh
  3. Extract the Java DB tree:
    ./javadb-<version>-solaris-<arch>.sh
To uninstall, simply remove the javadb tree.

Linux

  1. Download javadb-<version>-linux.bin.

  2. Make sure that execute permissions are set on the file:
    chmod +x javadb-<version>-linux.bin
  3. Extract the Java DB tree:
    ./javadb-<version>-linux.bin
To uninstall, simply remove the javadb tree.

Windows Installer

  1. Download javadb_<version>.msi.

  2. Install Java DB by either

    1. double-clicking javadb_<version>.msi, or

    2. running
      msiexec /i javadb_<version>.msi
    The default install directory on Windows is C:\Program Files\Sun\JavaDB (or its equivalent). Note that this will upgrade any previously installed earlier version of Java DB.
Java DB can be uninstalled by running the installer again and selecting its Remove option, or by using the Add or Remove Programs functionality in Windows' Control Panel.

Zip Archive

A basic platform independent zip archive is available for unpacking onto any system by any user. On Unix like systems, the command would typically be unzip javadb-<version>.zip, on Windows there are usually system utilities present on the system or 3rd party utilities like WinZip that can extract zip archives when they are double-clicked. The zip archive will extract into a javadb directory. Simply remove the javadb directory to uninstall Java DB.
Visit the Java DB home on http://developers.sun.com/javadb