Jrpip is built from the command line with the build/build.sh
or build/build.bat
files.
Jrpip is currently built with JDK 1.6. The resulting jars are known to work with JDK 1.6, 1.7, and 1.8.
You'll need to clone the repository and have JDK 1.6 installed. You can then setup your environment.
If you're using build.bat
under Windows, you must modify the first line of build/setenv.bat
to point to
your JDK installation.
If you're using build.sh
, you can set a variable in your shell, for example:
export JRPIP_JDK_HOME=/opt/jdk1.6.0_45
Alternatively, you can modify build/setenv.sh
by uncommenting the similar line near the top
and setting the value to point to your JDK.
Try the following command to test your setup:
build/build.sh compile-jrpip
The build process will download relevant dependencies and start ant to build Jrpip. You do not need your own copy of ant or any other jar.
The build takes a target. See the build/build.xml
file for all the targets. Some of the
important ones are:
compile-jrpip
: compiles the main library and code generator.compile-jrpip-test
: compiles Jrpip and all tests.jrpip-test-suite
: compiles and runs the test suite.
The file build/repos.txt
has the specification for where the dependencies are downloaded from.
If you wish to use your own mirror, make the appropriate changes to that file.