views:

130

answers:

1

I have a third party library that comes with .dll files that I need in order to run my java jar file. How can I include them in my jar file when I deploy my application? (I am using JSmooth to create an exe file - if that helps anything)

NOTE: I have looked at this stackoverflow question, but there's only one answer there, and I don't think it will work for me.

Thanks so much!

+2  A: 

this has come up before. the short answer is that you cant - the dll has to be accessible to the underline OS and so cannot be inside the jar. it can, however, be unpacked from within the jar to somewhere in the PATH before you call loadLobrary ....

look here : http://stackoverflow.com/questions/1611357/how-to-make-a-jar-file-that-include-dll-files

hatchetman82