981 return null;
982 }
983
984
985 /*
986 * Returns the JAR file local class path, or null if none.
987 */
988 URL[] getClassPath() throws IOException {
989 if (index != null) {
990 return null;
991 }
992
993 if (metaIndex != null) {
994 return null;
995 }
996
997 ensureOpen();
998 parseExtensionsDependencies();
999
1000 // check Profile attribute if present
1001 if (!profileCheckSuppressedByLauncher) {
1002 checkProfileAttribute();
1003 }
1004
1005 if (SharedSecrets.javaUtilJarAccess().jarFileHasClassPathAttribute(jar)) { // Only get manifest when necessary
1006 Manifest man = jar.getManifest();
1007 if (man != null) {
1008 Attributes attr = man.getMainAttributes();
1009 if (attr != null) {
1010 String value = attr.getValue(Name.CLASS_PATH);
1011 if (value != null) {
1012 return parseClassPath(csu, value);
1013 }
1014 }
1015 }
1016 }
1017 return null;
1018 }
1019
1020 /*
1021 * parse the standard extension dependencies
|
981 return null;
982 }
983
984
985 /*
986 * Returns the JAR file local class path, or null if none.
987 */
988 URL[] getClassPath() throws IOException {
989 if (index != null) {
990 return null;
991 }
992
993 if (metaIndex != null) {
994 return null;
995 }
996
997 ensureOpen();
998 parseExtensionsDependencies();
999
1000 // check Profile attribute if present
1001 if (!profileCheckSuppressedByLauncher &&
1002 SharedSecrets.javaUtilJarAccess().jarFileHasProfileAttribute(jar)) {
1003 checkProfileAttribute();
1004 }
1005
1006 if (SharedSecrets.javaUtilJarAccess().jarFileHasClassPathAttribute(jar)) { // Only get manifest when necessary
1007 Manifest man = jar.getManifest();
1008 if (man != null) {
1009 Attributes attr = man.getMainAttributes();
1010 if (attr != null) {
1011 String value = attr.getValue(Name.CLASS_PATH);
1012 if (value != null) {
1013 return parseClassPath(csu, value);
1014 }
1015 }
1016 }
1017 }
1018 return null;
1019 }
1020
1021 /*
1022 * parse the standard extension dependencies
|