throw new BundleException(StateMsg.HEADER_PACKAGE_JAVA);
throw new BundleException(NLS.bind(StateMsg.HEADER_PACKAGE_JAVA, packageNames[j]));
	private static void checkImportExportSyntax(ManifestElement[] elements, boolean export, boolean jreBundle) throws BundleException {		if (elements == null)			return;		int length = elements.length;		Set packages = new HashSet(length);		for (int i = 0; i < length; i++) {			// check for duplicate imports			String[] packageNames = elements[i].getValueComponents();			for (int j = 0; j < packageNames.length; j++) {				if (!export && packages.contains(packageNames[j]))					throw new BundleException(StateMsg.HEADER_PACKAGE_DUPLICATES);				// check for java.*				if (!jreBundle && packageNames[j].startsWith("java.")) //$NON-NLS-1$					throw new BundleException(StateMsg.HEADER_PACKAGE_JAVA);				packages.add(packageNames[j]);			}			// check for version/specification version mismatch			String version = elements[i].getAttribute(Constants.VERSION_ATTRIBUTE);			if (version != null) {				String specVersion = elements[i].getAttribute(Constants.PACKAGE_SPECIFICATION_VERSION);				if (specVersion != null && !specVersion.equals(version))					throw new BundleException(NLS.bind(StateMsg.HEADER_VERSION_ERROR, Constants.VERSION_ATTRIBUTE, Constants.PACKAGE_SPECIFICATION_VERSION));			}			// check for bundle-symbolic-name and bundle-verion attibures			// (failure)			if (export) {				if (elements[i].getAttribute(Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE) != null)					throw new BundleException(NLS.bind(StateMsg.HEADER_EXPORT_ATTR_ERROR, Constants.BUNDLE_SYMBOLICNAME_ATTRIBUTE, Constants.EXPORT_PACKAGE));				if (elements[i].getAttribute(Constants.BUNDLE_VERSION_ATTRIBUTE) != null)					throw new BundleException(NLS.bind(StateMsg.HEADER_EXPORT_ATTR_ERROR, Constants.BUNDLE_VERSION_ATTRIBUTE, Constants.EXPORT_PACKAGE));			}		}	}