package simple; import com.ms.security.*; import com.ms.util.SystemVersionManager; public class Simple extends java.applet.Applet { public void init() { try { if (Class.forName("com.ms.security.PolicyEngine") != null) PolicyEngine.assertPermission(PermissionID.SYSTEM); } catch (Throwable cnfe) { } try { String jvmver = ""+ SystemVersionManager.getVMVersion() ; MessageBox(0, "Microsoft JVM Version: \n" + jvmver + "\n\nM. Gallant 02/25/2000", "Java Native MessageBox", 0); } catch (UnsatisfiedLinkError ule) { System.err.println("Caught exception: " + ule); System.err.println("Probably wrong version of Java compiler."); } } /** @dll.import("USER32") */ static native int MessageBox(int hwndOwner, String text, String title, int style); }