diff -r a40090569cc5 -r d7c7b9d56631 jdk/src/share/classes/sun/launcher/LauncherHelper.java --- a/jdk/src/share/classes/sun/launcher/LauncherHelper.java Wed Aug 14 22:49:54 2013 -0700 +++ b/jdk/src/share/classes/sun/launcher/LauncherHelper.java Thu Aug 15 11:54:05 2013 +0100 @@ -65,13 +65,10 @@ import java.util.jar.Attributes; import java.util.jar.JarFile; import java.util.jar.Manifest; -import sun.misc.Version; -import sun.misc.URLClassPath; public enum LauncherHelper { INSTANCE; private static final String MAIN_CLASS = "Main-Class"; - private static final String PROFILE = "Profile"; private static StringBuilder outBuf = new StringBuilder(); @@ -415,27 +412,6 @@ } /* - * If this is not a full JRE then the Profile attribute must be - * present with the Main-Class attribute so as to indicate the minimum - * profile required. Note that we need to suppress checking of the Profile - * attribute after we detect an error. This is because the abort may - * need to lookup resources and this may involve opening additional JAR - * files that would result in errors that suppress the main error. - */ - String profile = mainAttrs.getValue(PROFILE); - if (profile == null) { - if (!Version.isFullJre()) { - URLClassPath.suppressProfileCheckForLauncher(); - abort(null, "java.launcher.jar.error4", jarname); - } - } else { - if (!Version.supportsProfile(profile)) { - URLClassPath.suppressProfileCheckForLauncher(); - abort(null, "java.launcher.jar.error5", profile, jarname); - } - } - - /* * Hand off to FXHelper if it detects a JavaFX application * This must be done after ensuring a Main-Class entry * exists to enforce compliance with the jar specification