|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.environment.Info
public class Info
The Info class is intended to be used as "Main class" when the package is jarred. Running java -jar <packageJarFile> will print some package information. Note that some of this information is only available from the Manifest.mf file, that is included in the jar file, and not when running directly from compiled classes.
| Field Summary | |
|---|---|
private static Package |
pack
|
static String |
packageName
|
| Constructor Summary | |
|---|---|
Info()
|
|
| Method Summary | |
|---|---|
static String |
getVersion()
Returns the specification version from the Manifest.mf file, if available, or else an empty String. |
static boolean |
isCompatibleWith(String desiredVersion)
checks whether the package specification version is compatible with a certain desired version. |
static void |
main(String[] arg)
|
static String |
manifestInfo()
Yields a String containing manifest file info. |
static void |
requireVersion(String requiredVersion)
Checks whether the current specification version meets the specified required version; if not, a RuntimeException is thrown. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Package pack
public static final String packageName
| Constructor Detail |
|---|
public Info()
| Method Detail |
|---|
public static String manifestInfo()
public static void requireVersion(String requiredVersion)
public static String getVersion()
public static boolean isCompatibleWith(String desiredVersion)
public static void main(String[] arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||