Problem of packing Jar file in Eclipse

Hello,

Thanks for looking my post first :D

My problem is:

While I run my program in eclipse, it is fine, but after I pack the whole project to a jar file, the interface is running, but the connection function.

My program is using my computer to connect a GSM device via bluetooth, the GSM device needs an java API (comm.jar, communication API) with an external driver named *.dll. It means not only the jar file need to be imported to eclipse, but also the *.dll file need to be placed in the java path: Java\jre1.5.0_08\bin\*.dll. And also another file called "javax.comm.properties" needs to be placed in Java\jre1.5.0_08\lib\.

I think the problem of my jar might be these two files not included in the classpath after exported.

Does anyone could tell me is there any way to put these two files into the classpath after export? Or what kind of problem am I face actually?

Thanks very much for help!

[953 byte] By [RichardXa] at [2007-10-3 2:40:13]
# 1

The description is rather confusing.

What computer exactly are you trying to run this stuff on (it doesn't matter what the software does)?

A shared library normally msut exist in such a way that the OS can find it and it has to be shared library that is meaningful to the OS (a HP shared library is not going to work on a windows box.)

There is no such thing as the "java path".

For windows normally dlls will go in the runtime directory of the application. Windows will find it there. If you want to adjust the path then the path is under control panel -> system.

jschella at 2007-7-14 19:38:32 > top of Java-index,Java Essentials,Java Programming...