creating jar keeping dll inside

i want to create a jar that will contain some dlls...is it possible? if so...how?
[88 byte] By [islandhopea] at [2007-11-26 14:40:55]
# 1

> i want to create a jar that will contain some

> dlls...is it possible? if so...how?

Sure its possible:

jar -cf mydlls.jar dll1.dll dll2.dll dll2.dll

But I bet you also wonder how you use them.

You have to extract them yourself using InputStream in = getClass().getResourceAsStream("/dll1.dll");

And then read from the Inputstream and write it to a file using FileOutputStream that exists on the PATH environment variable.

Caffeine0001a at 2007-7-8 8:22:17 > top of Java-index,Desktop,Deploying...