PIMInstallTester.java Source code

Java tutorial

Introduction

Here is the source code for PIMInstallTester.java

Source

import java.io.IOException;

public class PIMInstallTester {
    public static void main(String[] a) throws Exception {
        String version = null;
        version = System.getProperty("microedition.pim.version");
        if (version != null) {
            if (!version.equals("1.0"))
                throw new IOException("Package is not version 1.0.");
        } else
            throw new IOException("PIM optional package is not available.");
    }
}