All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.tools.JarJava
java.lang.Object
|
+----com.ibm.beans.tools.JarJava
- public class JarJava
- extends Object
This class implements a java command front-end which allows for
classpath indirection, meaning any jar or zip file found in a set
of directories specified by the java.class.path property be automatically
added to the classpath before executing the rest of the arguments.
The class may be used as a java application to run other java
applications, or it may be used as a means of retrieving the proper
CLASSPATH value to use when executing a java application.
-
executeJavaCommand()
- Executes the JarJava application arguments.
-
getClassPath()
- Gets the classPath property.
-
getNewClassPath()
- Constructs a new classpath value which has all the jar and zip
files found in directories specified by the java.class.path
property appended to it.
-
main(String[])
- Starts JarJava as an application.
-
setClassPath(String)
- Sets the classPath property.
setClassPath
public void setClassPath(String newClsPth)
- Sets the classPath property.
- Parameters:
- newClsPth - new value for the classpath.
getClassPath
public String getClassPath()
- Gets the classPath property.
- Returns:
- string value representing the CLASSPATH
executeJavaCommand
public int executeJavaCommand()
- Executes the JarJava application arguments.
- Returns:
- exit value from executed Java process
main
public static void main(String args[])
- Starts JarJava as an application. To invoke, enter java
com.ibm.beans.tools.JarJava <args>.
The specified args will be passed on to a separate
java process. The -classpath option to the java command
includes any .jar or .zip files found during the scan of the
java.class.path property.
getNewClassPath
public static String getNewClassPath()
- Constructs a new classpath value which has all the jar and zip
files found in directories specified by the java.class.path
property appended to it.
- Returns:
- string value representing the CLASSPATH
All Packages Class Hierarchy This Package Previous Next Index