Using .jar file from C#, approximate string comparison
A few days ago I was needing a library or API to implement a approximate string comparision between two character strings. Well, I'm a C# programmer and this library doesn't exist. Fortunately, Java has a implementation called secondstring wich has a lot of known functions such Jaro, Jaccard, Levestein, TFIDF and others.
I know a little of Java but my overall project is in code C#, therefore was neccesary call this library from C#, here is when the project IKVM became a hero.
The IKVM's web site has a really poor documentation, anyway I've could find the solution. So, I just converted my .jar file in a .dll file, to allow calls to functions and algorithms inside it.
The sentence in cuestion is below:
c:\ikvm\bin\ikvmc -target:library secondstring-20060615.jar
This returns a .dll file (secondstring-20060615.dll) ready to be referenced from our .NET project!!!
Download Secondstring API
Download IKVM
Hope this helps.









