The archive file can be embedded into variety of Dalvik applications. Let’s look at the case of an embedding inside an Android activity. Assume that your Java class <activity> derives from the class android.app. Activity and that it resides inside the destination directory <dest>. Assume further that this class will use the Dalvik runtime library of Jekejeke Prolog. Further assume that we do cross compilation on a traditional Java platform for an Android emulator or a remote Android device.

You will first need a Java development kit so that you have a Java compiler available. You will also need the Android development kit so that the Android libraries are available. Before you can start compiling your classes the following step might be necessary:

Your Java class <activity> can be compiled by the following command form the destination directory <dest>. Note the different path separators on the different platforms:

# on windows
javac –bootclasspath android.jar \
–cp toplevel.zip;. \
# on linux and mac
javac –bootclasspath android.jar \
–cp toplevel.zip:. \

Further steps that are necessary in the process of building an Android package are:

Alternatively you can use an integrated development environment to compile and execute your Java class. All you probably have to do is create an appropriate project and then register the archive file of the Jekejeke Prolog runtime library in the class path of the project. The development environment might invoke the installation for you.

The above works for an Android device connected via USB or for an Android emulator started on the development platform. Alternatively you can upload your Android package to an internet store or to an internet site. Then point your device to the internet store or to the internet site to launch the package.