0

I really want to use the libpostal library as part of my Java application via the jpostal binding. While I can work around the fact that jpostal uses Gradle instead of Maven, I'm not sure where to proceed after I've cross compiled a libpostal DLL using a Linux machine.

According the answer to this question, the process of installing a DLL on Windows is very convoluted.

If anyone has good idea as to where I can put the DLL so that my Java application using jpostal can find it, please tell me.

P.S: My Java application will run on a CentOS machine in production but for development, testing, and demoing I'm using my laptop and desktop which run Windows. Of course if I can't get libpostal to work on Windows, then I can always go the virtual machine route.

Community
  • 1
  • 1
VikNop
  • 73
  • 1
  • 8
  • Probably you don't need to *install* anything, you just have to take care your dll and it's dependencies are in the dll search path (https://msdn.microsoft.com/en-us/library/7d83bc18.aspx). I don't know Java, but see point 1 and 2 in the link: have you tried just putting the dll next to the main executable? – stijn Dec 21 '16 at 08:51
  • Java applications are usually packaged as JAR or WAR files, depending on whether the application is a web app or not. – VikNop Dec 21 '16 at 14:39
  • The only "executable" that I'm aware of is the Java virtual machine. – VikNop Dec 21 '16 at 14:44
  • If the VM sets the current working directory to the JAR path it should find dlls there. Or apparently in java.library.path: http://stackoverflow.com/questions/6092200/how-to-fix-an-unsatisfiedlinkerror-cant-find-dependent-libraries-in-a-jni-pro – stijn Dec 21 '16 at 14:53

0 Answers0