DependencyPrinter
class allows to print the list of dependencies from one JarDependency
and anotherJavaModulesUtilities
class allows to check that one or several Jar files are compatible with the Java module systemCompactProfiles
class allows to check that one Jar file is compatible with a specific Java compact profile (from compact1 to compact3)JarManifestUtilities
class allows to check that the jar files declared in the Class-Path
attribute in a Jar file Manifest existJarDependency
and another.JarDependencies depend = new JarDependencies(<myJarFile>); JarDependencies anotherDepend = new JarDependencies(<aSecondJarFile>); DependencyPrinter.printDependencies(depend, anotherDepend);This class can also be used to print the dependencies with JavaFX or Swing. For example:
JarDependencies depend = new JarDependencies(<myJarFile>); DependencyPrinter.printSwingDependencies(depend); // for Swing classes DependencyPrinter.printJavaFXDependencies(depend); // for JavaFX classes
JarDependencies depend = new JarDependencies(<myJarFile>); boolean isCompatible = JavaModulesUtilities.isModulesCompatible(depend);
JarDependencies depend = new JarDependencies(<myJarFile>); boolean isCompatible = CompactProfiles.isCompatible(myJarFile, 2);
Class-Path
attribute in a Jar file Manifest exist. There are two ways to use this class:List<URL> list = JarManifestUtilities.getDependencies(<myJarFile>);
Copyright 2019 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 licence