import java.io.IOException;
publicclass PIMInstallTester {
publicstaticvoid main(String[] a) throws Exception {
String version = null;
version = System.getProperty("microedition.pim.version");
if (version != null) {
if (!version.equals("1.0"))
thrownew IOException("Package is not version 1.0.");
} elsethrownew IOException("PIM optional package is not available.");
}
}