Oniguruma for Java

1. What is 'Oniguruma for Java'?

Oniguruma for Java is a regular expression library for JVM without Just In-Time 
compilers such as Mysaifu JVM and JamVM.

2. License

BSD license (3-clause BSD license).
http://en.wikipedia.org/wiki/BSD_licenses

3. Requirements

You will need a thread-safe Oniguruma installation, version 5.9.1 or later.
Oniguruma is available from http://www.geocities.jp/kosako3/oniguruma/ .
Get it, make and install it, and you are ready to try.

In order to make thread-safe by using the source code of 
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/trunk/onig-threadsafe/?root=onig4j .

The thread-safe Oniguruma for Windows (x86) and Windows CE (ARMV4) is available 
from http://sourceforge.jp/projects/onig4j/files/?release_id=30599#30599 .

4. Installation

Add unzipped JNI library (onig4j.dll or libonig4j.so) file to the java.library.path.

* When using it with Mysaifu JVM
  Copy the unzipped onig4j.dll and onig.dll onto the same directory as jvm.exe.
  For instance, copy it onto '\Program Files\Mysaifu JVM\jre\bin' when you install
  Mysaifu JVM in the device.

5. How to Use 'Oniguruma for Java'

Add unzipped onig4j.jar file to the CLASSPATH.

6. Sample Code

Look in the unzipped examples folder and look at Sample Programs of 
http://www.geocities.jp/kosako3/oniguruma/ .
