jar file

I have a java program that ends with a call to MATLAB to perform a regression analysis. The MATLAB call is made using a library named JMatLink, which must me installed (environment variables must be correctly set, a .dll must be saved in c:\windows). If I run the program from netbeans, or by moving the package folder inside .\jdk\main and using >java package.Main, the program ends without errors (and with correct results eheh); otherwise, if I build the jar file from netbeans, an exception occurr saying that java cannot find JMatLink..why?

thank you

[571 byte] By [vonfrischa] at [2007-10-3 3:18:11]
# 1
thats a problem with the configuration of packages and the classpath.nothing to do with the code (except maybe redefininf the packages) but is a problem on how the jar is created (from which directory)
MelGohana at 2007-7-14 21:09:53 > top of Java-index,Java Essentials,New To Java...