private static void warnAboutJar() {
		String userDir = System.getProperty("user.dir");
		if (System.getProperty("os.name").startsWith("Windows"))
			userDir = userDir.replace('\\', '/');
		// if mw.jar is in the root directory, userDir="C:/"; otherwise, userDir="C:/folder"
		// note the former has an extra '/' that the latter does not have.
		if (userDir.endsWith("/"))
			userDir = userDir.substring(0, userDir.length() - 1);
		userDir = FileUtilities.httpEncode(userDir);
		ClassLoader cl = Thread.currentThread().getContextClassLoader();
		String resourceURL = cl.getResource("org/concord/modeler").toString();
		int i = resourceURL.indexOf(userDir);
		if (i != -1) {
			String s = resourceURL.substring(i + userDir.length() + 1);
			if (s.indexOf(".jar") == -1) { // likely in developer mode, disable security manager
				System.setProperty("mw.nosecurity", "true");
			}
			else {
				if (!s.startsWith("mw.jar") && !s.startsWith("dist/mw.jar")) {
					JOptionPane.showMessageDialog(Initializer.sharedInstance().getSplash(), "The file name must be exactly mw.jar in order to run in this mode.", "Security Error", JOptionPane.ERROR_MESSAGE);
					System.exit(-1);
				}
			}
		}
		else {
			if (resourceURL.indexOf("mw.jar") == -1) {
				JOptionPane.showMessageDialog(Initializer.sharedInstance().getSplash(), "You cannot run mw.jar directly from a web page. Save it\nto your computer and then double-click on it.", "Security Error", JOptionPane.ERROR_MESSAGE);
				System.exit(-1);
			}
		}
	}