Download CommonJavaJars - A package with useful libraries for Java GUIs

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
CommonJavaJars - A package with useful libraries for Java GUIs
To reduce the package size of other R packages with Java GUIs and to reduce jar file conflicts, this package
provides a few commonly used Java libraries.
You should be able to load them by calling the rJava .jpackage function (a good place is most likely the
.onLoad function of your package):
.jpackage("CommonJavaJars", jars=c("forms-1.2.0.jar", "iText-2.1.4.jar"))
But since the version numbers of the jar files in CommonJavaJars can change, best practice is to use the
function loadJars and to specify only an unambiguous part of the name, if there are no reasons not to use
the latest version:
loadJars(c("forms", "iText"))
We provide the following Java libraries:
ˆ Apache Commons Logging under the Apache License, Version 2.0, January 2004, http://commons.
apache.org/logging/, Copyright 2001-2007 The Apache Software Foundation
ˆ Apache jog4j under Apache License 2.0, http://logging.apache.org/log4j/, Copyright 2007 The
Apache Software Foundation
ˆ Apache Commons Lang under Apache License 2.0, http://commons.apache.org/lang/, Copyright
2001-2011 The Apache Software Foundation
ˆ Apache Commons Collections under the Apache License, Version 2.0, January 2004, http://commons.
apache.org/collections/, Copyright 2001-2008 The Apache Software Foundation
ˆ Apache Commons Validator under the Apache License, Version 2.0, January 2004, http://commons.
apache.org/validator/, Copyright 2001-2010 The Apache Software Foundation
ˆ Apache Commons IO under the Apache License, Version 2.2 (last compatible with JDK 1.5), 2004,
http://commons.apache.org/io/, Copyright 2002-2012 The Apache Software Foundation
ˆ JLaTeXMath under GPL >= 2.0, http://forge.scilab.org/index.php/p/jlatexmath/, Copyright
2004-2007, 2009 Calixte, Coolsaet, Cleemput, Vermeulen and Universiteit Gent
ˆ iText 2.1.4 under LGPL, http://itextpdf.com/, Copyright by Bruno Lowagie
ˆ SwingWorker under LGPL, https://swingworker.dev.java.net/, Copyright (c) 2005 Sun Microsystems
ˆ JXLayer under BSD License, https://jxlayer.dev.java.net/, Copyright 2006-2009, Alexander Potochkin
ˆ JGoodies Forms and Commons under BSD License, http://www.jgoodies.com/freeware/forms/,
Copyright JGoodies Karsten Lentzsch
ˆ JSON Processing dual licensed under CDDL 1.1 and GPL 2 with Classpath Exception, https://
jsonp.java.net/, Copyright (c) 2011-2013 Oracle
ˆ AFCommons under the LGPL >= 2.1, https://github.com/kornl/afcommons/, Copyright (c) 20072014 by Kornelius Rohmeyer, Bernd Bischl, Santhosh Kumar T (ComponentTitledBorder class), Jerry
Huxtable (filter code), Sebastian Haufe (JListDnD class), Romain Guy (Star class), Oracle (CloseTabPanel)
ˆ JHLIR under BSD License, http://jhlir.r-forge.r-project.org/, Copyright (c) 2008-2010 by
Bernd Bischl and Kornelius Rohmeyer
ˆ JRIEngine and REngine under LGPL-2.1, http://www.rforge.net/rJava/, Copyright 2010 by Simon
Urbanek. Please use these two jar files only if package rJava does not provide them.
1
Please note that we only recommend to use JRIEngine and REngine from this package if the rJava version
is less than 0.8-3. Otherwise the package rJava provides these jar files.
# The following few lines are based on the code of the rJava .jpackage function
if (!is.null(sessionInfo()$otherPkgs$rJava$Version) && sessionInfo()$otherPkgs$rJava$Version < "0.8-3") {
classes <- system.file("R28", package = "CommonJavaJars", lib.loc = NULL)
if (nchar(classes)) {
.jaddClassPath(classes)
jars <- grep(".*\\.jar", list.files(classes, full.names = TRUE), TRUE, value = TRUE)
if (length(jars)) {
.jaddClassPath(jars)
}
}
}
# Otherwise load from rJava.
2