Java™ DB Installation

System Requirements

Install Formats

zip archive

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_5_3_0 or 10.5.3.0) 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_5_3_0-solaris-sparc.sh.

System Packages

rootself-extracting binaries

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
    
    
    On OpenSolaris, you would also install SUNWjavadb-service.
    
    
pkgaddadmin(4)pkgrm

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
    
    
rpmrpm -ev

Self-Extracting Binaries

javadb

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
            
javadb

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
            
javadb

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.

RemoveAdd or Remove Programs

Zip Archive

unzip javadb- <version>.zip javadbjavadb