Clone wiki

sqlite4java / Platforms / BuildingForAlpine

Install Required SDKs and Libraries

Install JDK 1.8+

  • This guide uses openjdk8, which can be installed with the following command:
    • sudo apk add openjdk8
  • Configure the JAVA_HOME environment variable:
    • echo "export JAVA_HOME='/usr/lib/jvm/default-jvm'" >> ~/.bashrc

Install Gant version 1.10.0.

  • This guide uses the standalone version, but other gant packages may work.
  • The following steps will install the Gant standalone:
    • wget
    • tar xf gant-1.10.0.tgz && sudo mv gant-1.10.0 /usr/libexec/
    • sudo ln -s /usr/libexec/gant-1.10.0/bin/gant /usr/bin/gant
    • Configure the GANT_HOME environment variable:
      • echo "export GANT_HOME='/usr/libexec/gant-1.10.0'" >> ~/.bashrc

Install git, gcc, swig, libc-dev

  • sudo apk add git gcc swig libc-dev

Install ant-junit

Clone the Repository

  • Get sqlite4java using the following command
    • git clone

Build the Code

  • From the sqlite4java/ant directory, run command gant -Dplatform=<platform> release all to build a release package. Some example platforms:
    • linux-i386 for x86
      • Example: gant -Dplatforms=linux-i386 release all
    • linux-amd64 for x86-64
      • Example: gant -Dplatforms=linux-amd64 release all
    • You can only use both if you have the build tools for both architectures installed.