In this case, the “archive” keyword must be followed by the path to an package zip archive file rather than just the name of a package
archive will print info for a package stored in a zip archive.installed will print info on the installed version of the named package.repository will print info from the repository for the named package.The command is followed by one of three keywords and then the name of a package: The -package-info command lists information about a package given its name. The following shows an example of listing all packages installed locally: java -list-packages installedġ.0.0 1.0.0 DTNB: Class for building and using a decision table/naive bayes hybrid classifier.ġ.0.0 1.0.0 massiveOnlineAnalysis: MOA (Massive On-line Analysis).ġ.0.0 1.0.0 multiInstanceFilters: A collection of filters for manipulating multi-instance data.ġ.0.0 1.0.0 naiveBayesTree: Class for generating a decision tree with naive Bayes classifiers at the leaves.ġ.0.0 1.0.0 scatterPlot3D: A visualization component for displaying a 3D scatter plot of the data using Java 3D. available will print information on all packages that are not installed.
installed will print information on all packages that are installed locally.all will print information on all packages that the system knows about.The option must be followed by one of three keywords: The -list-packages option will, as the name suggests, print information (version numbers and short descriptions) about various packages. This can be achieved by supplying the -refresh-cache option.
From time to time you should update the local cache of package meta data in order to get the latest information on packages from the server. Maintaining a cache speeds up the process of browsing the package information. The first time the package manager is run, for a new installation of Weka, there will be a short delay while the system downloads and stores a cache of the meta data from the server. Information (meta data) about packages is stored on a web server hosted on Sourceforge. Alternatively, the property =true can be provided to the Java virtual machine on the command line or in a properties file (see the section on properties below). This mode can be accessed from the command line package manager by specifying the "-offline" option. This mode can be used to install package zip files that the user already has on the file system, and to browse already installed packages. Weka 3.7.8 and snapshot builds of the developer version of Weka after Septemnow offer a completely "offline" mode that involves no attempts to connect to the internet. Supplying no options will print the usage information: Usage: Command line package managementĪssuming that the weka.jar file is in the classpath, the package manager can be accessed by typing: java If the package manager does not start when you try to run it, take a look at this page. There is both a command-line and GUI package manager. Weka includes a facility for the management of packages and a mechanism to load them dynamically at runtime. Many are provided by the Weka team and others are from third parties. There are a number of packages available for Weka that add learning schemes or extend the functionality of the core system in some fashion. It also provides a simple mechanism for people to use when contributing to Weka. This simplifies the core Weka system and allows users to install just what they need or are interested in. Many learning algorithms and tools that were present in earlier versions of Weka have become separate packages from version 3.7.2. A package consists of various jar files, documentation, meta data, and possibly source code. From version 3.7.2, Weka has the concept of a package as a bundle of additional functionality, separate from that supplied in the main weka.jar file. Usually, the term "package" is used to refer to Java's concept of organizing classes.