* Pack200: Find and use either Oracle or Apache library at runtime;

neither required at compile time.
This commit is contained in:
zzz
2010-12-13 14:01:46 +00:00
parent f194f78953
commit 2880d61c1b
3 changed files with 64 additions and 17 deletions

View File

@ -66,7 +66,12 @@ public class ConfigUpdateHandler extends FormHandler {
Class.forName("java.util.jar.Pack200", false, ClassLoader.getSystemClassLoader());
foo = PACK200_URLS;
} catch (ClassNotFoundException cnfe) {
foo = NO_PACK200_URLS;
try {
Class.forName("org.apache.harmony.unpack200.Archive", false, ClassLoader.getSystemClassLoader());
foo = PACK200_URLS;
} catch (ClassNotFoundException cnfe2) {
foo = NO_PACK200_URLS;
}
}
DEFAULT_UPDATE_URL = foo;
}