Overview

Java Library for WordReference.com
==================================

Java6 library and command line client for WordReference API:
 - supports API version 0.8
 - JSON over HTTP with optional GZIP compression


Prerequisites
-------------

Build:
- JDK 1.6+
- Apache Maven 2.2+

Run:
- JRE 1.6+
- wordreference API key
    http://www.wordreference.com/docs/APIregistration.aspx



Howto for the command line client
---------------------------------

$ mvn clean compile assembly:single
$ echo "your_api_key" > ~/.wr
$ java -jar target/wrcli.jar iten nebbia
category 'original':
 nebbia marina, foschia marina
   sea mist
 camera a nebbia
$

Please note that "iten" is the Italian->English dictionary. See
http://www.wordreference.com/docs/api.aspx for the complete list of
supported dictionaries.


Manual installation
-------------------

$ sudo install -D -m755 target/wrcli.jar /opt/wrcli/wrcli.jar
$ sudo install -m755 bin/wrcli /usr/local/bin/wrcli


RPM
---

$ mvn package assembly:single rpm:rpm

the RPM will be built into the directory 'target/rpm/wrcli/RPMS/noarch'.