Menu

#32 Error initialising JWNL with WordNet 2.0 on linux.

open
nobody
None
5
2010-03-09
2010-03-09
No

Using JWNL-1.4-rc2, attempting to initialise JWNL (via JWNL.initialize(InputStream)) on a linux installation of WordNet v2.0 the initialisation fails as it cannot find any .idx files (FileNotFoundException from Grep.setFile(File)).

These files are only part of the Windows installation and shouold not be included if the OS is not Windows.

One example of this is the check for JWNL.getVersion().getNumber() < 2.1 at line 73 of net.didion.jwnl.dictionary.file_manager.FileManagerImpl. this check should also include && JWNL.getOS().matches("Windows") (or similar) to avoid this.

Discussion


Log in to post a comment.