Learn R Programming

CommonJavaJars (version 1.1-0)

loadJars: Registers all Java classes from the specified jar files from this package.

Description

Registers all Java classes from the specified jar files from this package.

Usage

loadJars(jars, java="J5")

Value

The function returns the full names (sometimes including the version number) of the loaded jar files. (Invisible character vector.)

Arguments

jars

A character vector containing the names of the jar files to load. Since the version numbers of the jar files in CommonJavaJars can change, best practice is to specify only an unambiguous part of the name, if there are no reasons not to use the latest version. See the example section.

java

This character string specifies the Java version all jar files should be compatible with. For example JGoodies Forms requires Java 6 in version 1.6.0. The default java="J5" will therefore load version 1.2.0 of JGoodies Forms.

Author

Kornelius Rohmeyer rohmeyer@small-projects.de

Details

Registers all Java classes from the specified jar files from this package. An error is thrown if no matching jar file could be found for some of the specified jars.

Examples

Run this code

if (FALSE) {
jars <- c("commons-collections", "commons-lang", "commons-logging", 
          "commons-validator", "forms",	"iText", "jhlir.jar", 
          "jlatexmath", "jxlayer", "log4j", "swing-worker")
		  
fullNames <- loadJars(jars)

fullNames
}

Run the code above in your browser using DataLab