A library of simple tools written in Java, which aim at providing a common base for projects in the future.
The SimpleTools
library provides some utility classes which make common tasks, such as interpreting command line arguments (see com.github.sahasatvik.cli
), much simpler.
The docs/
folder in this repository, as well as in SimpleToolsComplete.jar
contains an extensive documentation of all of the features of every class in the library. You can start at docs/index.html
.
There are two ways of using this library :
-
Using the uncompressed
.class
files : simply copy the contents ofbin/
from the repository orSimpleToolsComplete.jar
into the your project directory, and import the required classes (eg. to import all of the classes in thecom/github/sahasatvik/cli
folder, useimport com.github.sahasatvik.cli.*;
. Compile as normal. -
Using the
SimpleTools.jar
file : downloadSimpleTools.jar
and copy it to a location within your project, and import the required classes as mentioned earlier. While compiling, remember to addSimpleTools.jar
to your classpath, as follows :
On UNIX based systems :javac -cp '.:path/to/jar/SimpleTools.jar' sourcefile.java
On Windows systems :javac -cp '.;path/to/jar/SimpleTools.jar' sourcefile.java
While executing your program, remember to addSimpleTools.jar
to the classpath again, as follows :
On UNIX based systems :java -cp '.:path/to/jar/SimpleTools.jar' sourcefile
On Windows systems :java -cp '.;path/to/jar/SimpleTools.jar' sourcefile