Hunspell is a very powerful Free spellchecker, that understands the strange rules that govern languages like hungarian, german and danish, unfortunatly it doesn't have Java bindings by default.
This page presents the JNA Java bindings that I've written for my employer
Stibo CatalogSystems
The code is licensed under LGPL.
So far the code works on the platorms I have needed to make work, but there is no reason that it shouldn't work on all platforms supported by both JNA+Hunspell (marked No below):
| OS/CPU | x86 32bit | x86 64bit | ppc 32bit |
|---|---|---|---|
| Linux | Yes | Yes | No |
| OSX | Yes | Yes | Yes |
| Windows | Yes | No | n/a |
The code is used in production by several companies and has been under QA for a good while now, so quality should be good enough for most use, but it's always recomended that you do your own testing.
| Version | Content | File name |
|---|---|---|
| Latest | Ikea (source) | hunspell-1.1.12-2-java-13.tar.gz [1,9M] |
| Latest | McD (binaries) | hunspell-1.1.12-2-java-13-bin.tar.gz [2,2M] |
| Old | Ikea (full source) | hunspell-1.1.12-2-java-6.tar.gz [1,8M] |
| Old | McD (binaries) | hunspell-1.1.12-2-java-6-bin.tar.gz [2,1M] |
The Ikea version includes everything needed to build the finished product, including the native binaries, some assembly required.
The McD version contains the binaries needed by application developers and the source for easy reference, there is also a hacked up version of jna.jar, fast and easy.